mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 02:52:36 +10:00
refactor health module
This commit is contained in:
@ -38,7 +38,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');
|
||||
|
||||
Reference in New Issue
Block a user