init studio admin backend
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
|
||||
import { Public } from '../admin-auth/decorators/admin-auth.decorators';
|
||||
import { HealthService } from './health.service';
|
||||
|
||||
@Public()
|
||||
@Controller('health')
|
||||
export class HealthController {
|
||||
constructor(private readonly healthService: HealthService) {}
|
||||
|
||||
@Get()
|
||||
getHealth() {
|
||||
return this.healthService.getHealth();
|
||||
}
|
||||
|
||||
@Get('db')
|
||||
getDbHealth() {
|
||||
return this.healthService.getDbHealth();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user