Merge pull request #64 from docmost/feat/health

Add health check
This commit is contained in:
Philip Okugbe
2024-07-06 01:06:17 +01:00
committed by GitHub
12 changed files with 270 additions and 5 deletions

View File

@ -34,7 +34,10 @@ export class CoreModule implements NestModule {
configure(consumer: MiddlewareConsumer) {
consumer
.apply(DomainMiddleware)
.exclude({ path: 'auth/setup', method: RequestMethod.POST })
.exclude(
{ path: 'auth/setup', method: RequestMethod.POST },
{ path: 'health', method: RequestMethod.GET },
)
.forRoutes('*');
}
}