2022-03-28 20:58:40 +00:00
|
|
|
"""
|
|
|
|
Package `routers`: Each module contains the path operations for their prefixes.
|
|
|
|
|
|
|
|
This file: Main API router definition.
|
|
|
|
"""
|
|
|
|
|
2022-03-24 23:44:51 +00:00
|
|
|
from fastapi import APIRouter
|
|
|
|
|
2022-03-30 10:53:36 +00:00
|
|
|
from ..config import Settings
|
2022-03-30 21:19:06 +00:00
|
|
|
from . import admin, device, service, user
|
2022-03-28 01:31:37 +00:00
|
|
|
|
2022-03-30 20:43:31 +00:00
|
|
|
main_router = APIRouter(prefix=f"/{Settings._.api_v1_prefix}")
|
2022-03-24 23:44:51 +00:00
|
|
|
|
2022-03-30 20:43:31 +00:00
|
|
|
main_router.include_router(admin.router)
|
2022-03-30 21:19:06 +00:00
|
|
|
main_router.include_router(service.router)
|
2022-03-29 00:01:12 +00:00
|
|
|
main_router.include_router(device.router)
|
2022-03-28 20:18:19 +00:00
|
|
|
main_router.include_router(user.router)
|
2022-03-24 23:44:51 +00:00
|
|
|
|
2022-03-28 21:41:56 +00:00
|
|
|
__all__ = [
|
|
|
|
"main_router",
|
|
|
|
]
|