1
0
mirror of https://github.com/Eugeny/tabby-web.git synced 2025-08-12 04:11:56 +00:00
Files
tabby-web/backend/tabby/app/api/auth.py
Eugene Pankov f677febac3 init
2021-10-31 18:15:23 +01:00

10 lines
250 B
Python

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)