router.py 420 B

1234567891011121314151617
  1. """
  2. Main API v1 router.
  3. This module aggregates all v1 API endpoints and provides a single router
  4. to be included in the main FastAPI application.
  5. """
  6. from fastapi import APIRouter
  7. from . import vehicles, builds, admin
  8. # Create the main v1 router
  9. router = APIRouter(prefix="/v1")
  10. # Include all sub-routers
  11. router.include_router(vehicles.router)
  12. router.include_router(builds.router)
  13. router.include_router(admin.router)