20 lines
380 B
Python
20 lines
380 B
Python
"""External source endpoints (yt-dlp etc.)."""
|
|
|
|
from typing import Any
|
|
|
|
from fastapi import APIRouter
|
|
|
|
router = APIRouter(prefix="/sources", tags=["sources"])
|
|
|
|
|
|
@router.get("")
|
|
async def list_sources() -> Any: ...
|
|
|
|
|
|
@router.get("/{source}/search")
|
|
async def search_source(source: str) -> Any: ...
|
|
|
|
|
|
@router.get("/{source}/health")
|
|
async def source_health(source: str) -> Any: ...
|