diff --git a/packages/pockethost/src/cli/commands/FirewallCommand/ServeCommand/firewall/server.ts b/packages/pockethost/src/cli/commands/FirewallCommand/ServeCommand/firewall/server.ts index fff48d8a..6412fd0f 100644 --- a/packages/pockethost/src/cli/commands/FirewallCommand/ServeCommand/firewall/server.ts +++ b/packages/pockethost/src/cli/commands/FirewallCommand/ServeCommand/firewall/server.ts @@ -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() }) diff --git a/packages/pockethost/src/services/ProxyService.ts b/packages/pockethost/src/services/ProxyService.ts index 063ddbfe..ae72ee20 100644 --- a/packages/pockethost/src/services/ProxyService.ts +++ b/packages/pockethost/src/services/ProxyService.ts @@ -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) => {