added blueprint and restructured existing routes

This commit is contained in:
Kamil
2024-12-03 12:38:47 +00:00
parent d5aee793a0
commit 3a26c054a0
4 changed files with 635 additions and 3 deletions

View File

@@ -161,10 +161,11 @@ celery.set_default()
app.logger.info(f'Jellyplist {__version__}{read_dev_build_file()} started')
app.logger.debug(f"Debug logging active")
from app import routes
app.register_blueprint(routes.pl_bp)
from app import jellyfin_routes, tasks
from app.routes import pl_bp, routes, jellyfin_routes
app.register_blueprint(pl_bp)
from . import tasks
if "worker" in sys.argv:
tasks.release_lock("download_missing_tracks_lock")