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

20 lines
448 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, user
main_router = APIRouter()
main_router.include_router(admin.router, prefix=f"/{Settings._.api_v1_prefix}")
main_router.include_router(device.router)
main_router.include_router(user.router)
__all__ = [
"main_router",
]