Move: auth to new api seperate app
This commit is contained in:
parent
5a3c568a15
commit
6ca01d7bdf
5 changed files with 39 additions and 7 deletions
14
backend/api/authentication/urls.py
Normal file
14
backend/api/authentication/urls.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from django.urls import path
|
||||
|
||||
from rest_framework_simplejwt.views import (
|
||||
TokenObtainPairView,
|
||||
TokenRefreshView,
|
||||
)
|
||||
|
||||
from api.authentication.views import LogoutView
|
||||
|
||||
urlpatterns = [
|
||||
path("logout/", LogoutView.as_view(), name="logout"),
|
||||
path("token/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
|
||||
path("token/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue