mirror of
https://github.com/marcogll/soul23_placeholder_site_server.git
synced 2026-01-13 13:25:18 +00:00
fix: Correct path to health_checker script in server.js
This commit is contained in:
@@ -11,7 +11,7 @@ app.use(express.static(rootDir, { index: "index.html" }));
|
|||||||
// Health checker should always return the raw script with text/plain
|
// Health checker should always return the raw script with text/plain
|
||||||
app.get("/healthchecker", (req, res) => {
|
app.get("/healthchecker", (req, res) => {
|
||||||
res.type("text/plain");
|
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)
|
// Fallback to index.html for other routes (optional)
|
||||||
|
|||||||
Reference in New Issue
Block a user