first commit

This commit is contained in:
Первов Артем
2026-06-19 08:18:52 +03:00
commit 05a9e0e535
61 changed files with 11950 additions and 0 deletions

17
src/health.controller.ts Normal file
View File

@@ -0,0 +1,17 @@
import { Controller, Get } from '@nestjs/common';
import { DbService } from './db/db.service';
@Controller()
export class HealthController {
constructor(private readonly db: DbService) {}
/** Проверяет доступность API и базы данных для деплоя и проверок здоровья. */
@Get('health')
async health() {
const database = await this.db.health();
return {
status: 'ok',
database,
};
}
}