feat(admin_routes): add admin routes for scheduler and sound management; refactor main routes

This commit is contained in:
JSC
2025-07-03 20:24:13 +02:00
parent c241a72c60
commit 8f17dd730a
3 changed files with 98 additions and 83 deletions

View File

@@ -68,10 +68,11 @@ def create_app():
scheduler_service.start()
# Register blueprints
from app.routes import auth, main
from app.routes import admin, auth, main
app.register_blueprint(main.bp, url_prefix="/api")
app.register_blueprint(auth.bp, url_prefix="/api/auth")
app.register_blueprint(admin.bp, url_prefix="/api/admin")
# Shutdown scheduler when app is torn down
@app.teardown_appcontext