mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 12:19:24 +08:00
10 lines
303 B
Python
10 lines
303 B
Python
from django.urls import path, include
|
|
from notifications.views import NotificationViewSet
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'', NotificationViewSet,
|
|
basename="Notifications")
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
]
|