From c1e7f31501853415e6ea1ab234049917372b4af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Wed, 30 Mar 2022 20:43:31 +0000 Subject: [PATCH] main_router prefix --- api/kiwi_vpn_api/routers/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)