feat(admin_routes): add admin routes for scheduler and sound management; refactor main routes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user