17 lines
512 B
Python
17 lines
512 B
Python
from django.urls import path
|
|
from users.api.v1.views import retrieve_update_me, change_password
|
|
|
|
from rest_framework_simplejwt.views import (
|
|
token_refresh,
|
|
token_obtain_pair,
|
|
token_verify
|
|
)
|
|
|
|
urlpatterns = [
|
|
path('login/', token_obtain_pair, name='login'),
|
|
path('refresh/', token_refresh, name='refresh_jwt'),
|
|
path('verify/', token_verify, name='verify_jwt'),
|
|
path('me/', retrieve_update_me, name='user_info'),
|
|
path('change-password/', change_password, name='change_password'),
|
|
]
|