mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
Fix: use send() instead of end() (#161)
This commit is contained in:
parent
807db8a2d8
commit
655536e457
1 changed files with 2 additions and 2 deletions
|
@ -96,8 +96,8 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
|
||||||
app.get("/metrics", basicAuth, prometheusAPIMetrics())
|
app.get("/metrics", basicAuth, prometheusAPIMetrics())
|
||||||
|
|
||||||
// Universal Route Handler, must be at the end
|
// Universal Route Handler, must be at the end
|
||||||
app.get("*", function(request, response, next) {
|
app.get("*", function(_request, response) {
|
||||||
response.end(indexHTML)
|
response.send(indexHTML);
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("Adding socket handler")
|
console.log("Adding socket handler")
|
||||||
|
|
Loading…
Reference in a new issue