mirror of
https://github.com/Eugeny/tabby-web.git
synced 2026-08-16 22:36:02 +01:00
10 lines
250 B
Python
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)
|