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(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()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -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) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user