Files
tabungin/apps/api/src/health/health.controller.ts
dwindown 89f881e7cf feat: reorganize admin settings with tabbed interface and documentation
- Reorganized admin settings into tabbed interface (General, Security, Payment Methods)
- Vertical tabs on desktop, horizontal scrollable on mobile
- Moved Payment Methods from separate menu to Settings tab
- Fixed admin profile reuse and dashboard blocking
- Fixed maintenance mode guard to use AppConfig model
- Added admin auto-redirect after login (admins → /admin, users → /)
- Reorganized documentation into docs/ folder structure
- Created comprehensive README and documentation index
- Added PWA and Web Push notifications to to-do list
2025-10-13 09:28:12 +07:00

22 lines
517 B
TypeScript

import { Controller, Get } from '@nestjs/common';
import { PrismaService } from '../prisma/prisma.service';
import { SkipMaintenance } from '../common/decorators/skip-maintenance.decorator';
@Controller('health')
@SkipMaintenance()
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' };
}
}