p00003/accounts/urls.py

8 lines
323 B
Python

from django.urls import path
from .views import UserRegistrationView, UserLoginView, UserLogoutView
urlpatterns = [
path('api/login/', UserLoginView.as_view(), name='login'),
path('api/logout/', UserLogoutView.as_view(), name='logout'),
path('api/register/', UserRegistrationView.as_view(), name='welcome'),
]