<filename>backend/urls.py
from django.urls import path, include
from rest_framework import routers

from . import views

# create router for backend api
apiRouter = routers.DefaultRouter()
apiRouter.register(r'users', views.UserViewSet)
apiRouter.register(r'groups', views.GroupViewSet)

# urls provided by the backend
urlpatterns = [
    path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
    path('api/', include(apiRouter.urls)),
    path('', views.index, name='index'),
    path('accounts/', include('dj_rest_auth.urls')),
    path('accounts/registration/', include('dj_rest_auth.registration.urls')),
]

<filename>backend/urls.py
from django.urls import path, include
from rest_framework import routers

from . import views

# create router for backend api
apiRouter = routers.DefaultRouter()
apiRouter.register(r'users', views.UserViewSet)
apiRouter.register(r'groups', views.GroupViewSet)

# urls provided by the backend
urlpatterns = [
    path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
    path('api/', include(apiRouter.urls)),
    path('', views.index, name='index'),
    path('accounts/', include('dj_rest_auth.urls')),
    path('accounts/registration/', include('dj_rest_auth.registration.urls')),
]

# create router for backend api # urls provided by the backend