feat(music-lab): 랜덤 풀에 7개 장르 추가 + GET /api/music/genres
This commit is contained in:
@@ -906,6 +906,13 @@ def list_batches(status: str = "all"):
|
||||
return {"batches": _db_module.list_batch_jobs(active_only=(status == "active"))}
|
||||
|
||||
|
||||
@app.get("/api/music/genres")
|
||||
def list_supported_genres():
|
||||
"""배치 생성에서 사용 가능한 장르 목록 — random_pools의 키."""
|
||||
from .random_pools import list_genres
|
||||
return {"genres": list_genres()}
|
||||
|
||||
|
||||
# ── 수익화 추적 API ───────────────────────────────────────────────────────────
|
||||
|
||||
@app.get("/api/music/revenue/dashboard")
|
||||
|
||||
Reference in New Issue
Block a user