Root-Route: freundliche JSON-Antwort statt 404 auf /

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-22 23:47:45 +02:00
co-authored by Claude Opus 4.8
parent 1ed50a6561
commit 716268b1c1
+7
View File
@@ -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) // Healthcheck (für Portainer/NPM)
app.get('/health', async () => ({ status: 'ok' })); app.get('/health', async () => ({ status: 'ok' }));