Update main.py

This commit is contained in:
Eduard Prigoana 2025-07-18 18:34:09 +03:00 committed by GitHub
parent e1b802c88f
commit 8d23ca1a79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -134,6 +134,12 @@ def serve_csv():
return send_file(CSV_FILE, mimetype="text/csv", as_attachment=False)
return "CSV not ready yet.", 503
@app.route("/artists.html")
def serve_artists_html():
if os.path.exists(HTML_FILE):
return send_file(HTML_FILE, mimetype="text/html")
return "HTML file not found.", 404
@app.route("/<path:path>")
def catch_all(path):
if os.path.exists(CSV_FILE):