File: urls.py

package info (click to toggle)
python-djangorestframework-simplejwt 5.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 956 kB
  • sloc: python: 3,783; makefile: 213; javascript: 40; sh: 6
file content (21 lines) | stat: -rw-r--r-- 771 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from django.urls import re_path

from rest_framework_simplejwt import views as jwt_views

from . import views

urlpatterns = [
    re_path(r"^token/pair/$", jwt_views.token_obtain_pair, name="token_obtain_pair"),
    re_path(r"^token/refresh/$", jwt_views.token_refresh, name="token_refresh"),
    re_path(
        r"^token/sliding/$", jwt_views.token_obtain_sliding, name="token_obtain_sliding"
    ),
    re_path(
        r"^token/sliding/refresh/$",
        jwt_views.token_refresh_sliding,
        name="token_refresh_sliding",
    ),
    re_path(r"^token/verify/$", jwt_views.token_verify, name="token_verify"),
    re_path(r"^token/blacklist/$", jwt_views.token_blacklist, name="token_blacklist"),
    re_path(r"^test-view/$", views.test_view, name="test_view"),
]