I think we good

This commit is contained in:
cool.gitter.not.me.again.duh
2025-05-29 18:10:37 -06:00
parent ba33e10afc
commit 1a39af3730
30 changed files with 1374 additions and 496 deletions

6
app.py
View File

@@ -8,6 +8,7 @@ from routes.playlist import playlist_bp
from routes.prgs import prgs_bp
from routes.config import config_bp
from routes.artist import artist_bp
from routes.history import history_bp
import logging
import logging.handlers
import time
@@ -149,6 +150,7 @@ def create_app():
app.register_blueprint(playlist_bp, url_prefix='/api/playlist')
app.register_blueprint(artist_bp, url_prefix='/api/artist')
app.register_blueprint(prgs_bp, url_prefix='/api/prgs')
app.register_blueprint(history_bp, url_prefix='/api/history')
# Serve frontend
@app.route('/')
@@ -186,6 +188,10 @@ def create_app():
# The id parameter is captured, but you can use it as needed.
return render_template('artist.html')
@app.route('/history')
def serve_history_page():
return render_template('history.html')
@app.route('/static/<path:path>')
def serve_static(path):
return send_from_directory('static', path)