Skip to content

Commit

Permalink
Urls: Notice app api urls added.
Browse files Browse the repository at this point in the history
  • Loading branch information
RishabhJain2018 committed Jan 19, 2017
1 parent 161d681 commit da4cfd5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HTTP_200/urls.py
Expand Up @@ -39,7 +39,8 @@
url(r'wifi/', include('wifi.urls')),

# api urls
url(r'^api/profiles/', include("profiles.api.urls", namespace='profiles-api')),
url(r'^api/profiles/', include("profiles.api.urls", namespace='profiles_api')),
url(r'^api/notices/', include("notices.api.urls", namespace='notices_api')),

]

Expand Down
12 changes: 12 additions & 0 deletions notices/api/urls.py
@@ -0,0 +1,12 @@
from django.conf.urls import url

from . import views

urlpatterns = [
url(r'notice_by_pk/(?P<pk>[0-9]+)/$', NoticeListViewSet.as_view(ListCreateMapper), name='notice-list'),
url(r'notices_create/$', NoticeCreateViewSet.as_view(), name='notice-create'),
url(r'notice_list/$', NoticeListViewSet.as_view(ListCreateMapper), name='notice-list'),

]


0 comments on commit da4cfd5

Please sign in to comment.