Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
ad848b91
Commit
ad848b91
authored
Nov 29, 2017
by
Lukas Burgey
Browse files
Logout is a post now
parent
e54ae328
Changes
1
Hide whitespace changes
Inline
Side-by-side
django_backend/backend/rest_views.py
View file @
ad848b91
...
...
@@ -29,10 +29,9 @@ class OperationalView(views.APIView):
class
LogoutView
(
views
.
APIView
):
def
ge
t
(
self
,
request
,
format
=
None
):
def
pos
t
(
self
,
request
,
format
=
None
):
logout
(
request
)
response
=
{
'logged_in'
:
False
}
return
Response
(
response
)
return
redirect
(
'/backend/api/state/'
)
class
StateView
(
views
.
APIView
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment