14 lines
526 B
Python
14 lines
526 B
Python
from django.urls import path
|
|
from .views import LoginView
|
|
from .views import RenewView
|
|
from .views import LogoutView
|
|
from .views import LogoutAllView
|
|
from .views import RegisterView
|
|
|
|
urlpatterns = [
|
|
path("create-token/", LoginView.as_view(), name="create_token"),
|
|
path("refresh-token/", RenewView.as_view(), name="refresh-token"),
|
|
path("signup/", RegisterView.as_view(), name="signup"),
|
|
path("logout/", LogoutView.as_view(), name="logout"),
|
|
path("logout-all/", LogoutAllView.as_view(), name="logout-all")
|
|
] |