back to the past bcb072f7d9f5f7817d949837219231232160ff11; Chatte

This commit is contained in:
2023-12-16 11:58:50 +01:00
parent bcb072f7d9
commit a7826040d6
16 changed files with 51 additions and 456 deletions

View File

@ -15,4 +15,4 @@ class LoggedView(APIView):
def get(self, request: HttpRequest):
if (request.user.is_authenticated):
return Response({'id': request.user.pk}, status=status.HTTP_200_OK)
return Response('false', status=status.HTTP_200_OK)
return Response('false', status=status.HTTP_200_OK)

View File

@ -15,4 +15,4 @@ class RegisterView(APIView):
if user:
login(request, user)
return Response("user created", status=status.HTTP_201_CREATED)
return Response(status=status.HTTP_400_BAD_REQUEST)
return Response(status=status.HTTP_400_BAD_REQUEST)