fix: обновлен ответ модели в маршруте регистрации
All checks were successful
Lint project / lint (push) Successful in 47s
All checks were successful
Lint project / lint (push) Successful in 47s
- Изменен тип возвращаемого значения функции `registration` на `UserReturnData`. - Обновлена аннотация `response_model` для маршрута `/register`.
This commit is contained in:
parent
d3b2f4d71a
commit
84446d44ce
@ -15,7 +15,7 @@ from lkeep.apps.auth.services import UserService
|
||||
auth_router = APIRouter(prefix="/auth", tags=["auth"])
|
||||
|
||||
|
||||
@auth_router.post(path="/register", status_code=status.HTTP_201_CREATED)
|
||||
@auth_router.post(path="/register", response_model=UserReturnData, status_code=status.HTTP_201_CREATED)
|
||||
async def registration(user: RegisterUser, service: UserService = Depends(UserService)) -> UserReturnData:
|
||||
"""
|
||||
Регистрация нового пользователя.
|
||||
|
Loading…
x
Reference in New Issue
Block a user