Skip to content

Instantly share code, notes, and snippets.

@Akshat1903
Created December 2, 2020 10:48
Show Gist options
  • Select an option

  • Save Akshat1903/57febcac591ff581df34e713eeeb7fd6 to your computer and use it in GitHub Desktop.

Select an option

Save Akshat1903/57febcac591ff581df34e713eeeb7fd6 to your computer and use it in GitHub Desktop.
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