Files

37 lines
1.8 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""API v1 router aggregates all v1 endpoint routers."""
from fastapi import APIRouter
from app.api.v1.health import router as health_router
from app.api.v1.auth import router as auth_router
from app.api.v1.users import router as users_router
from app.api.v1.roles import router as roles_router
from app.api.v1.contacts import router as contacts_router
from app.api.v1.tags import router as tags_router
from app.api.v1.equipment import router as equipment_router
from app.api.v1.stock_locations import router as stock_locations_router
from app.api.v1.equipment_groups import router as equipment_groups_router
from app.api.v1.crew import router as crew_router, avail_router as crew_avail_router
from app.api.v1.vehicles import (
router as vehicles_router,
assign_router as vehicle_assign_router,
)
from app.api.v1.projects import router as projects_router
api_v1_router = APIRouter()
api_v1_router.include_router(health_router, tags=["health"])
api_v1_router.include_router(auth_router, tags=["auth"])
api_v1_router.include_router(users_router, tags=["users"])
api_v1_router.include_router(roles_router, tags=["roles"])
api_v1_router.include_router(contacts_router, tags=["contacts"])
api_v1_router.include_router(tags_router, tags=["tags"])
api_v1_router.include_router(equipment_router, tags=["equipment"])
api_v1_router.include_router(stock_locations_router, tags=["stock-locations"])
api_v1_router.include_router(equipment_groups_router, tags=["equipment-groups"])
api_v1_router.include_router(crew_router, tags=["crew"])
api_v1_router.include_router(crew_avail_router, tags=["crew-availabilities"])
api_v1_router.include_router(vehicles_router, tags=["vehicles"])
api_v1_router.include_router(vehicle_assign_router, tags=["vehicle-assignments"])
api_v1_router.include_router(projects_router, tags=["projects"])