You've already forked WhereToGoRedux
mirror of
https://github.com/Llloooggg/WhereToGoRedux.git
synced 2026-03-06 21:16:23 +03:00
[backend]: Добавлена базовая JWT аутентификация
This commit is contained in:
9
backend/wheretogo/authentication/urls.py
Normal file
9
backend/wheretogo/authentication/urls.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.urls import path
|
||||
|
||||
from rest_framework_simplejwt.views import TokenObtainPairView
|
||||
from rest_framework_simplejwt.views import TokenRefreshView
|
||||
|
||||
urlpatterns = [
|
||||
path("token", TokenObtainPairView.as_view(), name="token_obtain_pair"),
|
||||
path("token/refresh", TokenRefreshView.as_view(), name="token_refresh"),
|
||||
]
|
||||
Reference in New Issue
Block a user