15 lines
366 B
TypeScript
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();
|
|
}
|
|
}
|