Root-Route: freundliche JSON-Antwort statt 404 auf /
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -39,6 +39,13 @@ export async function startWebServer(client) {
|
||||
}
|
||||
});
|
||||
|
||||
// Root — bis hier das Webinterface (Feature 4) wohnt
|
||||
app.get('/', async () => ({
|
||||
name: 'ecobot',
|
||||
status: 'ok',
|
||||
endpoints: ['/health', '/webhooks/gitea'],
|
||||
}));
|
||||
|
||||
// Healthcheck (für Portainer/NPM)
|
||||
app.get('/health', async () => ({ status: 'ok' }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user