This commit is contained in:
Eugene Pankov
2021-10-31 18:15:23 +01:00
commit f677febac3
134 changed files with 11509 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
from django.contrib.auth import logout
from rest_framework.response import Response
from rest_framework.views import APIView
class LogoutView(APIView):
def post(self, request, format=None):
logout(request)
return Response(None)