summaryrefslogtreecommitdiffhomepage
path: root/packages/console/app/src/routes/debug
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-09-18 10:59:01 -0400
committerFrank <[email protected]>2025-09-18 10:59:01 -0400
commit4ceabdffa07b1af8d99eb73622a4d549d99ec6d2 (patch)
tree72e2ae62084a9e24cc76caffbd1f30dafc69ea56 /packages/console/app/src/routes/debug
parentc87480cf931a6f8f8b55552558ef521f1918b578 (diff)
downloadopencode-4ceabdffa07b1af8d99eb73622a4d549d99ec6d2.tar.gz
opencode-4ceabdffa07b1af8d99eb73622a4d549d99ec6d2.zip
wip: zen
Diffstat (limited to 'packages/console/app/src/routes/debug')
-rw-r--r--packages/console/app/src/routes/debug/index.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/console/app/src/routes/debug/index.ts b/packages/console/app/src/routes/debug/index.ts
new file mode 100644
index 000000000..39fa33d90
--- /dev/null
+++ b/packages/console/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/console-core/drizzle/index.js"
+import { UserTable } from "@opencode/console-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
+ }),
+ })
+}