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 lines
364 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'^sessions/', rest_framework_jwt.views.obtain_jwt_token),
  10. ]