Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Oct 28, 2024
1 parent 757a8e6 commit d42d5ae
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apps/web/src/app/api/c.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// TODO: Remove this file

import type { APIEvent } from "@solidjs/start/server";
import { accounts, db } from "~/db";

export const GET = async ({ request, nativeEvent }: APIEvent) => {
try {
const users = await db.select().from(accounts);

return new Response(`ok ${users.length}`);
} catch (err) {
console.error(err);
return new Response("error", { status: 500 });
}
};

0 comments on commit d42d5ae

Please sign in to comment.