from django.urls import include, path from notifications.views import NotificationViewSet from rest_framework.routers import DefaultRouter router = DefaultRouter() router.register(r"", NotificationViewSet, basename="Notifications") urlpatterns = [ path("", include(router.urls)), ]