fix: Correct path to health_checker script in server.js

This commit is contained in:
Marco Gallegos
2025-11-24 20:18:56 -06:00
parent 7f366a170e
commit f36a39dd71
2 changed files with 1 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ app.use(express.static(rootDir, { index: "index.html" }));
// Health checker should always return the raw script with text/plain
app.get("/healthchecker", (req, res) => {
res.type("text/plain");
res.sendFile(path.join(rootDir, "health_checker"));
res.sendFile(path.join(rootDir, "scripts", "health_checker"));
});
// Fallback to index.html for other routes (optional)