backend/passfinder/users/api/urls.py

11 lines
386 B
Python
Raw Normal View History

2023-05-27 11:13:41 +03:00
from django.urls import path
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
from .views import RegisterApiView
urlpatterns = [
path("token/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
path("refresh/", TokenRefreshView.as_view(), name="token_refresh"),
path("register/", RegisterApiView.as_view(), name="user_register"),
]