Skip to content

Commit

Permalink
Merge pull request #77 from thalesgroup-cert/test
Browse files Browse the repository at this point in the history
Fix logout 404 bug
  • Loading branch information
Felix83000 authored Jun 2, 2022
2 parents be460d4 + cacb261 commit 61708c1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Watcher/Watcher/accounts/urls.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
from django.urls import path, include
from rest_framework import routers
from .api import LoginAPI, UserAPI
from knox import views as knox_views
from .api import PasswordChangeViewSet

router = routers.DefaultRouter()
router.register('api/auth/passwordchange', PasswordChangeViewSet, 'passwordchange')

urlpatterns = [
path('api/auth', include('knox.urls')),
path('api/auth/login', LoginAPI.as_view()),
path('api/auth/user', UserAPI.as_view()),
path('api/auth/logout', knox_views.LogoutView.as_view(), name='knox_logout'),
path('api/auth/', include('knox.urls')),
path('api/auth/login', LoginAPI.as_view()),
path('api/auth/user', UserAPI.as_view()),
] + router.urls

0 comments on commit 61708c1

Please sign in to comment.