mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 04:09:25 +08:00
11 lines
303 B
Python
11 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)),
|
||
|
]
|