20 lines
533 B
Python
20 lines
533 B
Python
from django.urls import path
|
|
from rest_framework_simplejwt.views import (
|
|
token_obtain_pair,
|
|
token_refresh,
|
|
token_verify,
|
|
)
|
|
|
|
from users.api.v1.views import change_password, retrieve_update_me
|
|
|
|
app_name = "auth"
|
|
|
|
|
|
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"),
|
|
]
|