You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 regels
360 B

  1. import rest_framework_jwt.views
  2. from django.conf.urls import url, include
  3. from rest_framework.routers import DefaultRouter
  4. from api import views
  5. router = DefaultRouter()
  6. router.register(r'entries', views.EntryViewSet, base_name='entries')
  7. urlpatterns = [
  8. url(r'^', include(router.urls)),
  9. url(r'^auth/', rest_framework_jwt.views.obtain_jwt_token),
  10. ]