Files
tabby-web/backend/tabby/app/api/auth.py

10 lines
250 B
Python
Raw Normal View History

2021-10-31 18:15:23 +01:00
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)