mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-29 18:50:39 +00:00
speed up redirect by using 302 redirect instead of vue redirect
This commit is contained in:
parent
75b21c905f
commit
c094dc0c5b
1 changed files with 9 additions and 0 deletions
|
@ -186,6 +186,15 @@ exports.entryPage = "dashboard";
|
|||
// Normal Router here
|
||||
// ***************************
|
||||
|
||||
// Entry Page
|
||||
app.get("/", async (_request, response) => {
|
||||
if (exports.entryPage === "statusPage") {
|
||||
response.redirect("/status");
|
||||
} else {
|
||||
response.redirect("/dashboard");
|
||||
}
|
||||
});
|
||||
|
||||
// Robots.txt
|
||||
app.get("/robots.txt", async (_request, response) => {
|
||||
let txt = "User-agent: *\nDisallow:";
|
||||
|
|
Loading…
Reference in a new issue