mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-11 07:38:56 +00:00
20 lines
470 B
Python
20 lines
470 B
Python
"""
|
|
notifications urls file
|
|
"""
|
|
# django imports
|
|
from django.urls import path, include
|
|
from rest_framework import routers
|
|
|
|
# local imports
|
|
from notifications.views import NotificationViewSet, ReadNotification
|
|
|
|
# initiate router
|
|
router = routers.SimpleRouter()
|
|
|
|
router.register('notifications', NotificationViewSet, basename='notifications')
|
|
|
|
urlpatterns = [
|
|
path('api/v1/', include(router.urls)),
|
|
path('api/v1/read-notification/', ReadNotification.as_view()),
|
|
]
|