from django.urls import path, include from rest_framework import routers from .views import LevelViewSet, StandardsViewSet from . import views router = routers.DefaultRouter() router.register(r'levels', LevelViewSet) router.register(r'standards', StandardsViewSet) urlpatterns = [ path('', include(router.urls)), path('content-list/', views.contentList, name='content-list'), ]