first commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// GET /api/hello -> { message: "<translated>", lang: "<active>" }
|
||||
// Uses ctx.t / ctx.lang, resolved from the wire-lang cookie or Accept-Language.
|
||||
import type { Context } from "@wrnexus/core";
|
||||
|
||||
export const GET = async (ctx: Context) => {
|
||||
return Response.json({ message: ctx.t("api.greeting"), lang: ctx.lang });
|
||||
};
|
||||
Reference in New Issue
Block a user