implement auth (register, login, logout)
This commit is contained in:
9
api/urls.py
Normal file
9
api/urls.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.urls import path
|
||||
|
||||
from .views import LoginView, LogoutView, RegisterView
|
||||
|
||||
urlpatterns = [
|
||||
path("auth/register", RegisterView.as_view(), name="auth-register"),
|
||||
path("auth/login", LoginView.as_view(), name="auth-login"),
|
||||
path("auth/logout", LogoutView.as_view(), name="auth-logout"),
|
||||
]
|
||||
Reference in New Issue
Block a user