diff --git a/backend/app/api/endpoints/playlists.py b/backend/app/api/endpoints/playlists.py index 5810b1a..ddc414d 100644 --- a/backend/app/api/endpoints/playlists.py +++ b/backend/app/api/endpoints/playlists.py @@ -21,7 +21,7 @@ from app.services.recommender import build_taste_profile router = APIRouter(prefix="/playlists", tags=["playlists"]) -@router.get("/", response_model=list[PlaylistResponse]) +@router.get("", response_model=list[PlaylistResponse]) async def list_playlists( user: User = Depends(get_current_user), db: AsyncSession = Depends(get_db), diff --git a/backend/app/main.py b/backend/app/main.py index 0b42f5f..46c12b9 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -4,7 +4,7 @@ from fastapi.middleware.cors import CORSMiddleware from app.core.config import settings from app.api.endpoints import auth, bandcamp, billing, lastfm, manual_import, playlists, profile, recommendations, youtube_music -app = FastAPI(title="Vynl API", version="1.0.0") +app = FastAPI(title="Vynl API", version="1.0.0", redirect_slashes=False) app.add_middleware( CORSMiddleware,