Give status info its own page

This commit is contained in:
Ian Renton
2025-10-08 16:33:02 +01:00
parent b45fda2dd2
commit 24c6ba98ef
6 changed files with 61 additions and 87 deletions

View File

@@ -37,6 +37,7 @@ class WebServer:
# Routes for templated pages
bottle.get("/")(lambda: self.serve_template('webpage_spots'))
bottle.get("/alerts")(lambda: self.serve_template('webpage_alerts'))
bottle.get("/status")(lambda: self.serve_template('webpage_status'))
bottle.get("/about")(lambda: self.serve_template('webpage_about'))
bottle.get("/apidocs")(lambda: self.serve_template('webpage_apidocs'))
# Default route to serve from "webassets"
@@ -58,7 +59,6 @@ class WebServer:
self.status = "OK"
response.content_type = 'application/json'
response.set_header('Cache-Control', 'no-store')
print(data)
return json.dumps(data, default=serialize_everything)
# Accept a spot