Add a /health endpoint to the application controller and configure Docker health checks. This enables container orchestration systems to monitor the application's liveness and readiness.
16 lines
473 B
TypeScript
16 lines
473 B
TypeScript
import { Response } from 'express';
|
|
import { UsersService } from './users/users.service';
|
|
export declare class AppController {
|
|
private usersService;
|
|
constructor(usersService: UsersService);
|
|
root(req: any, res: Response): void;
|
|
login(): {};
|
|
loginPost(res: Response): void;
|
|
register(): {};
|
|
registerPost(body: any, res: Response, req: any): Promise<void>;
|
|
logout(req: any, res: Response): void;
|
|
health(): {
|
|
status: string;
|
|
};
|
|
}
|