|
123456789101112131415161718192021 |
- # 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,
- route_fuelingtask
- )
-
- 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"]
- )
- api_router.include_router(route_fuelingtask.router, prefix="/fuel", tags=["fueltasks"])
|