wip: zen
This commit is contained in:
parent
c87480cf93
commit
4ceabdffa0
156 changed files with 443 additions and 445 deletions
13
packages/console/app/src/routes/debug/index.ts
Normal file
13
packages/console/app/src/routes/debug/index.ts
Normal file
|
|
@ -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
|
||||
}),
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue