From e05718953d3b535d9a5055786dfd439edc6c6507 Mon Sep 17 00:00:00 2001 From: DevendraPPatil Date: Tue, 12 Nov 2024 09:30:26 +0530 Subject: [PATCH] Fix:Health api added --- src/app.controller.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/app.controller.ts b/src/app.controller.ts index 2077f7f..f5b026d 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -10,4 +10,13 @@ export class AppController { getHello(): string { return this.appService.getHello(); } + + // Health check endpoint + @Get('/ping') + checkHealth(): { status: boolean; message: string } { + return { + status: true, + message: 'content ServiceApp is working', + }; + } }