djangoldp-notification/djangoldp_notification/urls.py

11 lines
409 B
Python
Raw Normal View History

2019-01-09 09:27:54 +00:00
"""djangoldp_notifications URL Configuration"""
from django.conf.urls import url
2019-01-31 09:44:41 +00:00
from .models import Notification, Subscription
2019-01-09 09:27:54 +00:00
from djangoldp.views import LDPViewSet
2019-01-31 11:03:13 +00:00
from djangoldp.permissions import InboxPermissions
2019-01-09 09:27:54 +00:00
urlpatterns = [
2019-01-31 11:03:13 +00:00
url(r'^notifications/', LDPViewSet.urls(model=Notification, permission_classes=(InboxPermissions,))),
2019-01-31 09:44:41 +00:00
url(r'^subscriptions/', LDPViewSet.urls(model=Subscription)),
2019-01-09 09:27:54 +00:00
]