from django.urls import path from rest_framework.routers import DefaultRouter from .views import questionnaire router = DefaultRouter(trailing_slash=False) urlpatterns = [ path('questionnaire', questionnaire, name='questionnaire') ] urlpatterns += router.urls