fix: update health check endpoint and response for firewall

This commit is contained in:
Ben Allfree 2025-06-17 12:47:22 +00:00
parent 452796f2db
commit fa3175c044
2 changed files with 3 additions and 3 deletions

View File

@ -42,9 +42,9 @@ export const firewall = async () => {
app.use(cors()) app.use(cors())
app.use(enforce.HTTPS()) app.use(enforce.HTTPS())
app.get(`/_api/health`, (req, res, next) => { app.get(`/_api/firewall/health`, (req, res, next) => {
dbg(`Health check`) dbg(`Health check`)
res.json({ status: 'ok' }) res.json({ status: 'firewall ok' })
res.end() res.end()
}) })

View File

@ -109,7 +109,7 @@ export const proxyService = mkSingleton(
res.end res.end
}) })
server.use('/_api', apiRouter) server.use('/_api/daemon', apiRouter)
// Default locals // Default locals
server.use((req, res, next) => { server.use((req, res, next) => {