add health check endpoint and update webserver routes

This commit is contained in:
Space-Banane
2026-02-22 14:59:19 +01:00
parent 140d660c1d
commit 5457fb5970
3 changed files with 14 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ export default async function webserver() {
});
const IgnoredPaths = ['/favicon.ico', '/robots.txt', "/", "/hello"];
const KnownPaths = ["/git-commit", "/"];
const KnownPaths = ["/git-commit", "/", "/health"];
// log all incoming requests
app.use((req, res, next) => {