|
12345678910111213141516171819 |
- # Base API router -- collecting all APIs here to not clutter main.py
- from fastapi import APIRouter
-
- from apis.v1 import (
- route_user,
- route_vehicle,
- route_auth,
- route_task,
- route_maintenancejob,
- )
-
- api_router = APIRouter()
- api_router.include_router(route_user.router, prefix="/user", tags=["users"])
- api_router.include_router(route_vehicle.router, prefix="/vehicle", tags=["vehicles"])
- api_router.include_router(route_auth.router, prefix="", tags=["auth"])
- api_router.include_router(route_task.router, prefix="/task", tags=["task"])
- api_router.include_router(
- route_maintenancejob.router, prefix="/maintenancejob", tags=["maintenancejob"]
- )
|