start-server-dev. Fixes #460

This commit is contained in:
Adam Stachowicz 2021-09-23 12:45:30 +02:00
parent a9bb8ae6a1
commit f6a984b671
2 changed files with 3 additions and 0 deletions

View file

@ -83,6 +83,7 @@ router.get("/api/status-page/monitor-list", cache("5 minutes"), async (_request,
// Can fetch only if published
router.get("/api/status-page/heartbeat", cache("5 minutes"), async (_request, response) => {
allowDevAllOrigin(response);
try {
await checkPublished();