Browse Source

add /.well-known/change-password

pull/402/head
LouisLam 3 years ago
parent
commit
97360dab26
  1. 4
      server/server.js

4
server/server.js

@ -151,6 +151,10 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
app.use("/", express.static("dist"));
app.get("/.well-known/change-password", async (_, response) => {
response.redirect("https://github.com/louislam/uptime-kuma/wiki/Reset-Password-via-CLI");
});
// Universal Route Handler, must be at the end
app.get("*", async (_request, response) => {
response.send(indexHTML);

Loading…
Cancel
Save