This commit is contained in:
parent
a32abcf472
commit
fab67f6ea9
|
@ -0,0 +1,13 @@
|
|||
from fastapi import APIRouter
|
||||
|
||||
from core.config import settings
|
||||
|
||||
from .users import router as users_router
|
||||
|
||||
router = APIRouter(
|
||||
prefix=settings.api.v1.users,
|
||||
)
|
||||
|
||||
router.include_router(users_router,
|
||||
prefix=settings.api.v1.users,
|
||||
)
|
|
@ -0,0 +1,6 @@
|
|||
from fastapi import APIRouter
|
||||
|
||||
|
||||
router = APIRouter(
|
||||
tags=['Users'],
|
||||
)
|
|
@ -14,8 +14,14 @@ class RunConfig(BaseModel):
|
|||
reload: bool = True
|
||||
|
||||
|
||||
class ApiV1Prefix(BaseModel):
|
||||
prefix: str = '/v1'
|
||||
users: str = '/users'
|
||||
|
||||
|
||||
class ApiPrefix(BaseModel):
|
||||
prefix: str = '/api'
|
||||
v1: ApiV1Prefix = ApiV1Prefix()
|
||||
|
||||
|
||||
class DatabaseConfig(BaseModel):
|
||||
|
|
Loading…
Reference in New Issue