Fix /docs: add explicit route for openapi.yaml

Flask static folder wasn't serving .yaml files automatically.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 16:36:42 -06:00
parent 5e76ce9597
commit 94f29bf4f4
2 changed files with 7 additions and 1 deletions

View File

@@ -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."""

View File

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