first commit

This commit is contained in:
2026-07-12 15:55:18 +05:30
commit ee98026cc5
404 changed files with 44522 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import type { Context } from "@wrnexus/core";
// Demonstrates method-specific handlers on a single route file.
// GET /api/echo -> usage hint
// POST /api/echo -> echoes the JSON body back
export const GET = async () => {
return Response.json({ usage: "POST JSON here and it will be echoed back" });
};
export const POST = async (ctx: Context) => {
const body = await ctx.req.json();
return Response.json({ received: body });
};