Merge branch 'master' of gitlab.prodcontest.ru:team-15/project

This commit is contained in:
ITQ
2025-03-01 02:51:44 +03:00
+4 -1
View File
@@ -1,5 +1,6 @@
from http import HTTPStatus as status
from django.shortcuts import get_object_or_404
from ninja import Router
from ninja.errors import AuthenticationError
@@ -61,4 +62,6 @@ def sign_in(request, data: LoginSchema):
status.NOT_FOUND: NotFoundError,
},
)
def get_user(request, user_id: str): ...
def get_user(request, user_id: str):
user = get_object_or_404(User, id=user_id)
return status.OK, user