-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mv re_path to path in jwt and auth token
- Loading branch information
Showing
3 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from django.urls import re_path | ||
from django.urls import path | ||
|
||
from djoser.views.token.create import TokenCreateView | ||
from djoser.views.token.destroy import TokenDestroyView | ||
|
||
urlpatterns = [ | ||
re_path(r"^token/login/?$", TokenCreateView.as_view(), name="login"), | ||
re_path(r"^token/logout/?$", TokenDestroyView.as_view(), name="logout"), | ||
path("token/login/", TokenCreateView.as_view(), name="login"), | ||
path("token/logout/", TokenDestroyView.as_view(), name="logout"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from django.urls import re_path | ||
from django.urls import path | ||
from rest_framework_simplejwt import views | ||
|
||
urlpatterns = [ | ||
re_path(r"^jwt/create/?", views.TokenObtainPairView.as_view(), name="jwt-create"), | ||
re_path(r"^jwt/refresh/?", views.TokenRefreshView.as_view(), name="jwt-refresh"), | ||
re_path(r"^jwt/verify/?", views.TokenVerifyView.as_view(), name="jwt-verify"), | ||
path("jwt/create/", views.TokenObtainPairView.as_view(), name="jwt-create"), | ||
path("jwt/refresh/", views.TokenRefreshView.as_view(), name="jwt-refresh"), | ||
path("jwt/verify/", views.TokenVerifyView.as_view(), name="jwt-verify"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters