Thin API bootstrap with config module and nullcart-style health route for Docker checks.
11 lines
281 B
TypeScript
11 lines
281 B
TypeScript
import { Controller, Get, HttpStatus, Res } from '@nestjs/common';
|
|
import type { Response } from 'express';
|
|
|
|
@Controller('/health-check')
|
|
export class HealthCheckController {
|
|
@Get('/')
|
|
getStatus(@Res() res: Response) {
|
|
return res.sendStatus(HttpStatus.OK);
|
|
}
|
|
}
|