<filename>src/taalapi/urls.py
from django.conf.urls import include
from django.contrib import admin
from django.urls import include, path

from rest_framework.routers import DefaultRouter

from knowledgebase import views as kb_views


api_router = DefaultRouter()
api_router.register('lidwoorden', kb_views.LidwoordenViewSet)
api_router.register('woorden', kb_views.WoordenViewSet)

urlpatterns = [
    path('admin/', admin.site.urls),
    path('api/v1/', include(api_router.urls)),
]

<filename>src/taalapi/urls.py
from django.conf.urls import include
from django.contrib import admin
from django.urls import include, path

from rest_framework.routers import DefaultRouter

from knowledgebase import views as kb_views


api_router = DefaultRouter()
api_router.register('lidwoorden', kb_views.LidwoordenViewSet)
api_router.register('woorden', kb_views.WoordenViewSet)

urlpatterns = [
    path('admin/', admin.site.urls),
    path('api/v1/', include(api_router.urls)),
]
