Initial Commit

This commit is contained in:
2026-10-03 20:07:49 +02:00
commit a1346c98b1
427 changed files with 59320 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { eq } from 'drizzle-orm'
import { settings } from '../db/schema'
export default defineEventHandler(async () => {
const db = useDb()
const [row] = await db
.select({ value: settings.value })
.from(settings)
.where(eq(settings.key, 'motd'))
.limit(1)
return { message: row?.value ?? '' }
})