Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

login urls

from knox import views as knox_views
from .views import LoginAPI
from django.urls import path

urlpatterns = [
    path('api/login/', LoginAPI.as_view(), name='login'),
    path('api/logout/', knox_views.LogoutView.as_view(), name='logout'),
    path('api/logoutall/', knox_views.LogoutAllView.as_view(), name='logoutall'),
]
Source by studygyaan.com #
 
PREVIOUS NEXT
Tagged: #login #urls
ADD COMMENT
Topic
Name
5+1 =