From 94f29bf4f4c1857d903b2e3c40be2e811ab95b29 Mon Sep 17 00:00:00 2001 From: Spencer Grimes Date: Wed, 4 Feb 2026 16:36:42 -0600 Subject: [PATCH] Fix /docs: add explicit route for openapi.yaml Flask static folder wasn't serving .yaml files automatically. Co-Authored-By: Claude Opus 4.5 --- aggregator.py | 6 ++++++ index.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/aggregator.py b/aggregator.py index 3f49cb9..08d170e 100644 --- a/aggregator.py +++ b/aggregator.py @@ -313,6 +313,12 @@ def index(): return send_from_directory(ROOT_DIR, "index.html") +@app.route("/openapi.yaml") +def openapi_spec(): + """Serve OpenAPI specification.""" + return send_from_directory(ROOT_DIR, "openapi.yaml", mimetype="text/yaml") + + @app.route("/status", methods=["GET"]) def get_status(): """Return current status as JSON.""" diff --git a/index.html b/index.html index 9bc8b65..7b60f3f 100644 --- a/index.html +++ b/index.html @@ -217,7 +217,7 @@ const emoteEl = document.getElementById("emote"); const messageEl = document.getElementById("message"); const POLL_INTERVAL = 2000; - const VERSION = "v1.3.2"; + const VERSION = "v1.3.3"; // Sound system let audioCtx = null;