cloud creation
This commit is contained in:
16
src/health.controller.ts
Normal file
16
src/health.controller.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { DbService } from './db/db.service';
|
||||
|
||||
@Controller()
|
||||
export class HealthController {
|
||||
constructor(private readonly db: DbService) {}
|
||||
|
||||
@Get('health')
|
||||
async health() {
|
||||
const database = await this.db.health();
|
||||
return {
|
||||
status: 'ok',
|
||||
database,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user