first commit

This commit is contained in:
dwindown
2025-10-09 12:52:41 +07:00
commit 0da6071eb3
205 changed files with 30980 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { Controller, Get } from '@nestjs/common';
import { PrismaService } from '../prisma/prisma.service';
@Controller('health')
export class HealthController {
constructor(private readonly prisma: PrismaService) {}
@Get()
ok() {
return { status: 'ok' };
}
@Get('db')
async db() {
// Simple connectivity check
await this.prisma.$queryRaw`SELECT 1`;
return { db: 'connected' };
}
}