main_router prefix

This commit is contained in:
Jörn-Michael Miehe 2022-03-30 20:43:31 +00:00
parent d9552cbf42
commit c1e7f31501

View file

@ -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)