25 lines
471 B
Python
25 lines
471 B
Python
"""Album endpoints."""
|
|
|
|
import uuid
|
|
from typing import Any
|
|
|
|
from fastapi import APIRouter
|
|
|
|
router = APIRouter(prefix="/albums", tags=["albums"])
|
|
|
|
|
|
@router.get("")
|
|
async def list_albums() -> Any: ...
|
|
|
|
|
|
@router.get("/{album_id}")
|
|
async def get_album(album_id: uuid.UUID) -> Any: ...
|
|
|
|
|
|
@router.get("/{album_id}/tracks")
|
|
async def get_album_tracks(album_id: uuid.UUID) -> Any: ...
|
|
|
|
|
|
@router.get("/{album_id}/cover")
|
|
async def get_album_cover(album_id: uuid.UUID) -> Any: ...
|