-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Leonardo da Silva Gomes <leonardodasigomes@gmail.com>
- Loading branch information
1 parent
84147f8
commit c2e71a5
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
from django.urls import path | ||
# Django | ||
from django.urls import path, include | ||
|
||
# Viewsets | ||
from .viewsets import UserRegistrationAPIView | ||
|
||
from rest_framework.authtoken.views import obtain_auth_token | ||
# Simple JWT | ||
from rest_framework_simplejwt.views import ( | ||
TokenObtainPairView, | ||
TokenRefreshView, | ||
) | ||
|
||
app_name = 'users' | ||
|
||
urlpatterns = [ | ||
path('signup/', UserRegistrationAPIView.as_view(), name='signup'), | ||
path('token/', TokenObtainPairView.as_view(), name='token_obtain_pair'), | ||
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'), | ||
] |