APIRouter groups related routes in a separate module, with a shared prefix and tags. You add it to the application with include_router. It lets you organize a large API into coherent files instead of a single one.
Example
router = APIRouter(prefix='/items', tags=['items'])
app.include_router(router)