({ request }: DataFunctionArgs)
| 35 | } |
| 36 | |
| 37 | export async function loader({ request }: DataFunctionArgs) { |
| 38 | const user = await requireUser(request); |
| 39 | |
| 40 | if (!user.admin) { |
| 41 | throw new Response("You must be an admin to perform this action", { status: 403 }); |
| 42 | } |
| 43 | |
| 44 | const entry = await waitTillGcFinishes(); |
| 45 | |
| 46 | return new Response(JSON.stringify(entry), { |
| 47 | status: 200, |
| 48 | headers: { |
| 49 | "Content-Type": "application/json", |
| 50 | }, |
| 51 | }); |
| 52 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…