"""The one router constructor the package's modules share. Every module builds its own `APIRouter` and `__init__` mounts them in the order that matters. They cannot be prefix-less sub-routers: FastAPI refuses a route whose path and router prefix are BOTH empty, which the browse list ("") would be, so the prefix lives here rather than five times over. """ from fastapi import APIRouter def documents_router() -> APIRouter: return APIRouter(prefix="/documents", tags=["documents"])