kiwi-vpn/api/kiwi_vpn_api/routers/__init__.py

21 lines
496 B
Python

"""
Package `routers`: Each module contains the path operations for their prefixes.
This file: Main API router definition.
"""
from fastapi import APIRouter
from ..config import SETTINGS
from . import admin, device, service, user
main_router = APIRouter(prefix=f"/{SETTINGS.api_v1_prefix}")
main_router.include_router(admin.router)
main_router.include_router(service.router)
main_router.include_router(device.router)
main_router.include_router(user.router)
__all__ = [
"main_router",
]