Skip to content

Commit

Permalink
Merge pull request #56 from DevendraPPatil/release-1.3-test-rig
Browse files Browse the repository at this point in the history
Fetch: Health api added
  • Loading branch information
sudeeppr1998 authored Nov 12, 2024
2 parents b8a4717 + 1b1ad69 commit 2bd2cb7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,12 @@ export class AppController {
getHello(): string {
return this.appService.getHello();
}

@Get('/ping')
checkHealth(): { status: boolean; message: string } {
return {
status: true,
message: 'Content service App is working',
};
}
}
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ async function bootstrap() {

await app.listen(3008, '0.0.0.0');
}
AppClusterService.clusterize(bootstrap);
AppClusterService.clusterize(bootstrap);

0 comments on commit 2bd2cb7

Please sign in to comment.