implement auth (register, login, logout)

This commit is contained in:
Matteo Rosati
2026-02-10 20:24:02 +01:00
parent b10cd41cb3
commit 266a1249d7
9 changed files with 293 additions and 4 deletions

9
api/urls.py Normal file
View 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"),
]