from fastapi import APIRouter, Depends

from app.core.deps import get_current_user
from app.services.assets_service import list_styles, list_bgm
from app.core.response import success_response


router = APIRouter()


@router.get("/subtitle-styles")
async def list_subtitle_styles(current_user: dict = Depends(get_current_user)):
    return success_response({"styles": list_styles("subtitle")})


@router.get("/title-styles")
async def list_title_styles(current_user: dict = Depends(get_current_user)):
    return success_response({"styles": list_styles("title")})


@router.get("/bgm")
async def list_bgm_items(current_user: dict = Depends(get_current_user)):
    return success_response({"bgm": list_bgm()})
