From fc4f281408c56ab12db571a470456212a479edf5 Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 18 Sep 2025 01:32:40 -0400 Subject: wip: zen --- packages/cloud/app/src/routes/debug/index.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/cloud/app/src/routes/debug/index.ts (limited to 'packages/cloud/app/src/routes/debug') diff --git a/packages/cloud/app/src/routes/debug/index.ts b/packages/cloud/app/src/routes/debug/index.ts new file mode 100644 index 000000000..8c7eb7bd8 --- /dev/null +++ b/packages/cloud/app/src/routes/debug/index.ts @@ -0,0 +1,13 @@ +import type { APIEvent } from "@solidjs/start/server" +import { json } from "@solidjs/router" +import { Database } from "@opencode/cloud-core/drizzle/index.js" +import { UserTable } from "@opencode/cloud-core/schema/user.sql.js" + +export async function GET(evt: APIEvent) { + return json({ + data: await Database.use(async (tx) => { + const result = await tx.$count(UserTable) + return result + }), + }) +} -- cgit v1.2.3