vpn integration

This commit is contained in:
2026-04-11 22:07:59 +02:00
parent c4d27e9842
commit 00ac38d126
47 changed files with 945 additions and 749 deletions
+3 -5
View File
@@ -1,5 +1,4 @@
from django.urls import path, include
from django.urls import include, path
# Ajout du package manquant dans requirements.txt ou installez-le avec:
# pip install djangorestframework-simplejwt
@@ -8,12 +7,11 @@ from rest_framework_simplejwt.views import (
TokenRefreshView,
)
from .routers import router
app_name = "api"
urlpatterns = [
path("", include(router.urls)),
path('api/token/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
path('api/token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
path("api/token/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
path("api/token/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
]