Update code in endpoints/signup.post.py

This commit is contained in:
Backend IM Bot 2025-03-21 11:40:12 +00:00
parent 5e12c5a0e5
commit f3ac933e54

View File

@ -16,17 +16,17 @@ router = APIRouter()
async def get_playlist_songs(
playlist_id: str = "playlist1"
):
"""Fetch songs from a playlist"""
"""Get songs from a playlist"""
playlist = next((p for p in playlists if p["id"] == playlist_id), None)
if not playlist:
raise HTTPException(status_code=400, detail="Playlist not found")
return {
"message": "Songs fetched successfully",
"message": "Songs retrieved successfully",
"playlist_id": playlist_id,
"songs": playlist["songs"],
"features": {
"total_songs": len(playlist["songs"]),
"can_shuffle": True
"shuffled": False
}
}