Spaces:
Running
Running
Deploy update: app/api/routes.py
Browse files- app/api/routes.py +7 -0
app/api/routes.py
CHANGED
|
@@ -689,6 +689,13 @@ async def _find_and_rank_similar_tracks(
|
|
| 689 |
return ranked_tracks[:limit]
|
| 690 |
|
| 691 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 692 |
@router.get("/health")
|
| 693 |
async def health() -> dict:
|
| 694 |
return {"status": "ok", "recommender_loaded": recommender._loaded}
|
|
|
|
| 689 |
return ranked_tracks[:limit]
|
| 690 |
|
| 691 |
|
| 692 |
+
@router.get("/config")
|
| 693 |
+
async def get_client_config() -> dict:
|
| 694 |
+
return {
|
| 695 |
+
"spotify_client_id": settings.spotify_client_id,
|
| 696 |
+
}
|
| 697 |
+
|
| 698 |
+
|
| 699 |
@router.get("/health")
|
| 700 |
async def health() -> dict:
|
| 701 |
return {"status": "ok", "recommender_loaded": recommender._loaded}
|