Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Replace deprecated django.conf.urls.url with django.urls.re_path #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions oauth2_provider_jwt/urls.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
from django.conf.urls import url
from django.urls import re_path
from oauth2_provider import views

from .views import TokenView, JWTAuthorizationView

app_name = "oauth2_provider_jwt"

urlpatterns = [
url(r"^authorize/$", JWTAuthorizationView.as_view(), name="authorize"),
url(r"^token/$", TokenView.as_view(), name="token"),
url(r"^revoke_token/$", views.RevokeTokenView.as_view(),
name="revoke-token"),
url(r"^introspect/$", views.IntrospectTokenView.as_view(),
name="introspect"),
re_path(r"^authorize/$", JWTAuthorizationView.as_view(), name="authorize"),
re_path(r"^token/$", TokenView.as_view(), name="token"),
re_path(r"^revoke_token/$", views.RevokeTokenView.as_view(),
name="revoke-token"),
re_path(r"^introspect/$", views.IntrospectTokenView.as_view(),
name="introspect"),
]