From 84446d44cecfa6d39253e0fb019ed3150c8adb7e Mon Sep 17 00:00:00 2001 From: proDream Date: Sun, 12 Jan 2025 13:12:50 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BE=D1=82=D0=B2=D0=B5=D1=82=20=D0=BC=D0=BE?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D0=B8=20=D0=B2=20=D0=BC=D0=B0=D1=80=D1=88?= =?UTF-8?q?=D1=80=D1=83=D1=82=D0=B5=20=D1=80=D0=B5=D0=B3=D0=B8=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Изменен тип возвращаемого значения функции `registration` на `UserReturnData`. - Обновлена аннотация `response_model` для маршрута `/register`. --- lkeep/apps/auth/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lkeep/apps/auth/routes.py b/lkeep/apps/auth/routes.py index 99f7c4f..03dfc45 100644 --- a/lkeep/apps/auth/routes.py +++ b/lkeep/apps/auth/routes.py @@ -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: """ Регистрация нового пользователя.