diff --git a/backend/api/urls.py b/backend/api/urls.py new file mode 100644 index 0000000..b385ee3 --- /dev/null +++ b/backend/api/urls.py @@ -0,0 +1,11 @@ +from django.urls import path, include + +from rest_framework_simplejwt.views import ( + TokenObtainPairView, + TokenRefreshView, +) + +urlpatterns = [ + path("api/token/", TokenObtainPairView.as_view(), name="token_obtain_pair"), + path("api/token/refresh/", TokenRefreshView.as_view(), name="token_refresh"), +]