Files
dh-inspeccion-v2/api-v3/src/health.controller.ts
T

15 lines
366 B
TypeScript

import { Controller, Get } from '@nestjs/common';
import { Public } from './auth/decorators/public.decorator';
import { HealthService } from './health.service';
@Controller('health')
export class HealthController {
constructor(private readonly healthService: HealthService) {}
@Get()
@Public()
async health() {
return this.healthService.check();
}
}