mirror of
https://github.com/pockethost/pockethost.git
synced 2025-11-23 22:15:49 +00:00
fix: update health check endpoint and response for firewall
This commit is contained in:
parent
452796f2db
commit
fa3175c044
@ -42,9 +42,9 @@ export const firewall = async () => {
|
||||
app.use(cors())
|
||||
app.use(enforce.HTTPS())
|
||||
|
||||
app.get(`/_api/health`, (req, res, next) => {
|
||||
app.get(`/_api/firewall/health`, (req, res, next) => {
|
||||
dbg(`Health check`)
|
||||
res.json({ status: 'ok' })
|
||||
res.json({ status: 'firewall ok' })
|
||||
res.end()
|
||||
})
|
||||
|
||||
|
||||
@ -109,7 +109,7 @@ export const proxyService = mkSingleton(
|
||||
res.end
|
||||
})
|
||||
|
||||
server.use('/_api', apiRouter)
|
||||
server.use('/_api/daemon', apiRouter)
|
||||
|
||||
// Default locals
|
||||
server.use((req, res, next) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user