updates static service info

This commit is contained in:
nai-degen 2024-01-08 23:32:25 -06:00
parent a57cc4e8d4
commit 1bbb515200
1 changed files with 5 additions and 1 deletions

View File

@ -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));
});