mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
add file watcher
- disable double flask instances - remove unused files - play song by id (instead of from nginx)
This commit is contained in:
@@ -17,7 +17,8 @@ def create_app():
|
||||
app.config.from_mapping(config)
|
||||
cache.init_app(app)
|
||||
|
||||
from . import api
|
||||
app.register_blueprint(api.bp, url_prefix='/')
|
||||
with app.app_context():
|
||||
from . import api
|
||||
app.register_blueprint(api.bp, url_prefix='/')
|
||||
|
||||
return app
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user