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

@ -40,7 +40,8 @@ async function bootstrap() {
.addHook('preHandler', function (req, reply, done) {
if (
req.originalUrl.startsWith('/api') &&
!req.originalUrl.startsWith('/api/auth/setup')
!req.originalUrl.startsWith('/api/auth/setup') &&
!req.originalUrl.startsWith('/api/health')
) {
if (!req.raw?.['workspaceId']) {
throw new NotFoundException('Workspace not found');