alternative-backend-service/users/urls.py

12 lines
528 B
Python

from django.urls import path
from rest_framework_simplejwt.views import TokenRefreshView
from . import views
urlpatterns = [
path('register/', views.register_user, name='register'),
path('login/', views.login_user, name='login'),
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
path('profile/', views.get_user_profile, name='profile'),
path('profile/update/', views.update_user_profile, name='update_profile'),
path('me/', views.UserDetailView.as_view(), name='user_detail'),
]