Files
WRNexusJS/examples/basic-app/app/api/users/csr.ts
T
2026-07-12 15:55:18 +05:30

9 lines
287 B
TypeScript

// 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 });
};