From dc878b26acfb48e56227bbc79a0d9d9f2531bef7 Mon Sep 17 00:00:00 2001 From: Xoconoch Date: Sun, 3 Aug 2025 18:25:35 -0600 Subject: [PATCH] Reorganize backend --- app.py | 19 ++++++++++--------- routes/auth/__init__.py | 0 routes/{ => auth}/credentials.py | 0 routes/content/__init__.py | 0 routes/{ => content}/album.py | 0 routes/{ => content}/artist.py | 0 routes/{ => content}/playlist.py | 0 routes/{ => content}/track.py | 0 routes/core/__init__.py | 0 routes/{ => core}/history.py | 0 routes/{ => core}/search.py | 0 routes/system/__init__.py | 0 routes/{ => system}/config.py | 0 routes/{prgs.py => system/progress.py} | 0 14 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 routes/auth/__init__.py rename routes/{ => auth}/credentials.py (100%) create mode 100644 routes/content/__init__.py rename routes/{ => content}/album.py (100%) rename routes/{ => content}/artist.py (100%) rename routes/{ => content}/playlist.py (100%) rename routes/{ => content}/track.py (100%) create mode 100644 routes/core/__init__.py rename routes/{ => core}/history.py (100%) rename routes/{ => core}/search.py (100%) create mode 100644 routes/system/__init__.py rename routes/{ => system}/config.py (100%) rename routes/{prgs.py => system/progress.py} (100%) diff --git a/app.py b/app.py index 753b9e7..bd0730f 100755 --- a/app.py +++ b/app.py @@ -15,15 +15,16 @@ import socket from urllib.parse import urlparse # Import route routers (to be created) -from routes.search import router as search_router -from routes.credentials import router as credentials_router -from routes.album import router as album_router -from routes.track import router as track_router -from routes.playlist import router as playlist_router -from routes.prgs import router as prgs_router -from routes.config import router as config_router -from routes.artist import router as artist_router -from routes.history import router as history_router +from routes.auth.credentials import router as credentials_router +from routes.content.artist import router as artist_router +from routes.content.album import router as album_router +from routes.content.track import router as track_router +from routes.content.playlist import router as playlist_router +from routes.core.search import router as search_router +from routes.core.history import router as history_router +from routes.system.progress import router as prgs_router +from routes.system.config import router as config_router + # Import Celery configuration and manager from routes.utils.celery_manager import celery_manager diff --git a/routes/auth/__init__.py b/routes/auth/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/routes/credentials.py b/routes/auth/credentials.py similarity index 100% rename from routes/credentials.py rename to routes/auth/credentials.py diff --git a/routes/content/__init__.py b/routes/content/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/routes/album.py b/routes/content/album.py similarity index 100% rename from routes/album.py rename to routes/content/album.py diff --git a/routes/artist.py b/routes/content/artist.py similarity index 100% rename from routes/artist.py rename to routes/content/artist.py diff --git a/routes/playlist.py b/routes/content/playlist.py similarity index 100% rename from routes/playlist.py rename to routes/content/playlist.py diff --git a/routes/track.py b/routes/content/track.py similarity index 100% rename from routes/track.py rename to routes/content/track.py diff --git a/routes/core/__init__.py b/routes/core/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/routes/history.py b/routes/core/history.py similarity index 100% rename from routes/history.py rename to routes/core/history.py diff --git a/routes/search.py b/routes/core/search.py similarity index 100% rename from routes/search.py rename to routes/core/search.py diff --git a/routes/system/__init__.py b/routes/system/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/routes/config.py b/routes/system/config.py similarity index 100% rename from routes/config.py rename to routes/system/config.py diff --git a/routes/prgs.py b/routes/system/progress.py similarity index 100% rename from routes/prgs.py rename to routes/system/progress.py