main_router prefix
This commit is contained in:
parent
d9552cbf42
commit
c1e7f31501
1 changed files with 2 additions and 2 deletions
|
@ -9,9 +9,9 @@ from fastapi import APIRouter
|
||||||
from ..config import Settings
|
from ..config import Settings
|
||||||
from . import admin, device, user
|
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(device.router)
|
||||||
main_router.include_router(user.router)
|
main_router.include_router(user.router)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue