Commit ad848b91 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Logout is a post now

parent e54ae328
......@@ -29,10 +29,9 @@ class OperationalView(views.APIView):
class LogoutView(views.APIView):
def get(self, request, format=None):
def post(self, request, format=None):
logout(request)
response = {'logged_in': False}
return Response(response)
return redirect('/backend/api/state/')
class StateView(views.APIView):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment