feat(global): initialize project and framework structure, dockerize
This commit is contained in:
1 parent
3194237f5f
commit
2e9bfc888f
26 files changed
+422
-113
No files matched your search
@@ -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;
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user