sergey 2024-07-11 22:25:42 +03:00
parent a32abcf472
commit fab67f6ea9
3 changed files with 25 additions and 0 deletions

View File

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

View File

@ -0,0 +1,6 @@
from fastapi import APIRouter
router = APIRouter(
tags=['Users'],
)

View File

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