diff --git a/api/kiwi_vpn_api/routers/__init__.py b/api/kiwi_vpn_api/routers/__init__.py index 9b6ebbd..283056a 100644 --- a/api/kiwi_vpn_api/routers/__init__.py +++ b/api/kiwi_vpn_api/routers/__init__.py @@ -9,9 +9,9 @@ from fastapi import APIRouter from ..config import Settings from . import admin, device, user -main_router = APIRouter() +main_router = APIRouter(prefix=f"/{Settings._.api_v1_prefix}") -main_router.include_router(admin.router, prefix=f"/{Settings._.api_v1_prefix}") +main_router.include_router(admin.router) main_router.include_router(device.router) main_router.include_router(user.router)