feat(global): initialize project and framework structure, dockerize

This commit is contained in:
h
2025-09-02 00:03:50 +03:00
parent 3194237f5f
commit 2e9bfc888f
26 changed files with 422 additions and 113 deletions

11
server/api/health.get.ts Normal file
View File

@@ -0,0 +1,11 @@
import { defineEventHandler } from 'h3';
import prisma from '~~/lib/prisma';
export default defineEventHandler(async () => {
try {
await prisma.$queryRaw`SELECT 1`;
return { db: 'ok' } as const;
} catch {
return { db: 'error' } as const;
}
});