This commit is contained in:
Xavier Ordoquy 2017-04-15 21:51:22 +00:00 committed by GitHub
commit 179ccd237a

View File

@ -92,8 +92,8 @@ Okay, now let's wire up the API URLs. On to `tutorial/urls.py`...
from tutorial.quickstart import views
router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet)
router.register(r'groups', views.GroupViewSet)
router.register(r'users', UserViewSet)
router.register(r'groups', GroupViewSet)
# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.