1from django.urls import include, path
2from rest_framework import routers
3from tutorial.quickstart import views
4
5router = routers.DefaultRouter()
6router.register(r'users', views.UserViewSet)
7router.register(r'groups', views.GroupViewSet)
8
9# Wire up our API using automatic URL routing.
10# Additionally, we include login URLs for the browsable API.
11urlpatterns = [
12 path('', include(router.urls)),
13 path('api-auth/', include('rest_framework.urls', namespace='rest_framework'))
14]