mirror of
https://github.com/Eugeny/tabby-web.git
synced 2026-08-17 06:46:05 +01:00
init
This commit is contained in:
9
backend/tabby/app/api/auth.py
Normal file
9
backend/tabby/app/api/auth.py
Normal 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)
|
||||
Reference in New Issue
Block a user