This commit is contained in:
Louis Lam 2022-05-11 00:51:11 +08:00
parent 201a25c659
commit 59be9bb971
4 changed files with 186 additions and 23 deletions

View file

@ -183,7 +183,8 @@ try {
if (request.hostname in StatusPage.domainMappingList) {
debug("This is a status page domain");
response.send(indexHTML);
// TODO
response.send(StatusPage.renderHTML(indexHTML));
} else if (exports.entryPage && exports.entryPage.startsWith("statusPage-")) {
response.redirect("/status/" + exports.entryPage.replace("statusPage-", ""));
} else {