import { Controller, Get } from '@nestjs/common';
import { AllowUnauthorizedRequest } from '../../lib/auth.guard';

@Controller('health')
export class HealthController {
  @Get('live')
  @AllowUnauthorizedRequest()
  liveness() {
    return { status: 'ok' };
  }

  @Get('ready')
  @AllowUnauthorizedRequest()
  readiness() {
    return { status: 'ok' };
  }
}
