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:
@@ -313,6 +313,12 @@ def index():
|
|||||||
return send_from_directory(ROOT_DIR, "index.html")
|
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"])
|
@app.route("/status", methods=["GET"])
|
||||||
def get_status():
|
def get_status():
|
||||||
"""Return current status as JSON."""
|
"""Return current status as JSON."""
|
||||||
|
|||||||
@@ -217,7 +217,7 @@
|
|||||||
const emoteEl = document.getElementById("emote");
|
const emoteEl = document.getElementById("emote");
|
||||||
const messageEl = document.getElementById("message");
|
const messageEl = document.getElementById("message");
|
||||||
const POLL_INTERVAL = 2000;
|
const POLL_INTERVAL = 2000;
|
||||||
const VERSION = "v1.3.2";
|
const VERSION = "v1.3.3";
|
||||||
|
|
||||||
// Sound system
|
// Sound system
|
||||||
let audioCtx = null;
|
let audioCtx = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user