Skip to content

Commit

Permalink
feat: add healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Samox committed Apr 17, 2023
1 parent d3debfc commit 33cf294
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/client-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const pathFilter = function (path: string, req: any) {
return (
req.method === 'GET' &&
path !== '/graphql' &&
path !== '/health' &&
path !== '/playground' &&
path !== '/store-metadata' &&
path !== '/auth-metadata' &&
Expand Down
5 changes: 5 additions & 0 deletions src/interface/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ export class AppController {
return webhookStoreMetadata;
}

@Get('/heatlth')
getHealth(): true {
return true;
}

@Post('/*')
@UseInterceptors(AnyFilesInterceptor())
async createWebhook(
Expand Down

0 comments on commit 33cf294

Please sign in to comment.