Skip to content

Instantly share code, notes, and snippets.

@aballah-chamakh
Created December 10, 2019 17:03
Show Gist options
  • Save aballah-chamakh/c0e5c0077a61e23903f30bf1e7a07b6b to your computer and use it in GitHub Desktop.
Save aballah-chamakh/c0e5c0077a61e23903f30bf1e7a07b6b to your computer and use it in GitHub Desktop.
from django.contrib import admin
from django.urls import path,include
from rest_framework_jwt.views import obtain_jwt_token,refresh_jwt_token
urlpatterns = [
path('admin/', admin.site.urls),
path('api/',include('SAInference.urls')),
path('api/token/', obtain_jwt_token, name='token_obtain_pair'),
path('api/token/refresh', refresh_jwt_token, name='token_refresh'),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment