Created
December 2, 2020 10:48
-
-
Save Akshat1903/57febcac591ff581df34e713eeeb7fd6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| from . import views | |
| from django.urls import path | |
| from rest_framework_simplejwt.views import ( | |
| TokenRefreshView, | |
| ) | |
| app_name = 'api' | |
| urlpatterns = [ | |
| path('register/',views.RegisterView.as_view(),name="register"), | |
| path('login/',views.LoginAPIView.as_view(),name="login"), | |
| path('logout/', views.LogoutAPIView.as_view(), name="logout"), | |
| path('api/token/refresh/', TokenRefreshView.as_view(), name='token_refresh'), | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment