Files
WRNexusJS/packages/graphql/src/route.ts
T
Clintchiz 586a6db8ff
Quality / quality (ubuntu-latest) (push) Failing after 21s
Quality / quality (windows-latest) (push) Canceled after 0s
release: WRNexusJS 0.8.0
2026-08-02 23:18:51 +05:30

7 lines
271 B
TypeScript

export async function POST(ctx: { req: Request }): Promise<Response> {
const handler = (globalThis as any).__wrnexusGraphqlHandler;
if (typeof handler !== "function")
return new Response("GraphQL is not configured", { status: 503 });
return handler(ctx.req);
}