"""Subsonic-compatible API layer mounted at /rest."""

from fastapi import APIRouter

from app.api.rest.annotation import router as annotation_router
from app.api.rest.browsing import router as browsing_router
from app.api.rest.media import router as media_router
from app.api.rest.playlists import router as playlists_router
from app.api.rest.search import router as search_router
from app.api.rest.system import router as system_router

subsonic_router = APIRouter(tags=["subsonic"])
subsonic_router.include_router(system_router)
subsonic_router.include_router(browsing_router)
subsonic_router.include_router(search_router)
subsonic_router.include_router(playlists_router)
subsonic_router.include_router(media_router)
subsonic_router.include_router(annotation_router)

__all__ = ["subsonic_router"]
