updates static service info
This commit is contained in:
parent
a57cc4e8d4
commit
1bbb515200
|
@ -65,7 +65,11 @@ app.get("/health", (_req, res) => res.sendStatus(200));
|
|||
app.use(cors());
|
||||
app.use(checkOrigin);
|
||||
|
||||
app.get("/", handleInfoPage);
|
||||
if (config.staticServiceInfo) {
|
||||
app.get("/", (_req, res) => res.sendStatus(200));
|
||||
} else {
|
||||
app.get("/", handleInfoPage);
|
||||
}
|
||||
app.get("/status", (req, res) => {
|
||||
res.json(buildInfo(req.protocol + "://" + req.get("host"), false));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue