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
+8
View File
@@ -0,0 +1,8 @@
// GET /api/users/csr — real users from the database (client-side data binding).
import { getDb } from "@wrnexus/db";
import { ListUsers } from "../../db/queries.gen.ts";
export const GET = async () => {
const users = await ListUsers(getDb());
return Response.json({ users });
};
+8
View File
@@ -0,0 +1,8 @@
// GET /api/users/ssr — real users from the database (server-side data binding).
import { getDb } from "@wrnexus/db";
import { ListUsers } from "../../db/queries.gen.ts";
export const GET = async () => {
const users = await ListUsers(getDb());
return Response.json({ users });
};