server/ammico/urls.py
author rougeronj
Wed, 27 May 2015 19:06:00 +0200
changeset 102 622f5d1955b6
parent 79 1be5cc51e359
child 111 6b397990e314
permissions -rw-r--r--
add 'public' boolean field to the model and an access to get the list of the public books
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
35
cf8c306ab902 moove authentication urls inside ammico urls
rougeronj
parents: 22
diff changeset
     1
from django.conf.urls import patterns, url, include
79
1be5cc51e359 Add url to access main page of the project and gulp "copy-server" to copy the ammico app to the server
rougeronj
parents: 62
diff changeset
     2
from django.views.generic.base import TemplateView
22
609fa711b324 add URL_JAMESPOT in settings - add requirements.txt to build the virtual env
rougeronj
parents: 19
diff changeset
     3
102
622f5d1955b6 add 'public' boolean field to the model and an access to get the list of the public books
rougeronj
parents: 79
diff changeset
     4
from ammico.views import ListBooks, InfoBook, ListSlides, InfoSlide, SlidesOrder, PublicBooks
22
609fa711b324 add URL_JAMESPOT in settings - add requirements.txt to build the virtual env
rougeronj
parents: 19
diff changeset
     5
13
08f34bbc70ee set up django rest framework
rougeronj
parents:
diff changeset
     6
08f34bbc70ee set up django rest framework
rougeronj
parents:
diff changeset
     7
urlpatterns = patterns('',
79
1be5cc51e359 Add url to access main page of the project and gulp "copy-server" to copy the ammico app to the server
rougeronj
parents: 62
diff changeset
     8
    url(r'^$', TemplateView.as_view(template_name="index.html"), name='index'),
46
f909e7f2917d add order management od the slides on server side
rougeronj
parents: 35
diff changeset
     9
    url(r'^books$', ListBooks.as_view()),
18
4d3f67ddbe72 return Stop information fetch from jamestop api in the Slide info - id to idBook and idSlide to avoid confusion
rougeronj
parents: 14
diff changeset
    10
    url(r'^books/(?P<idBook>[0-9]+)$', InfoBook.as_view()),
46
f909e7f2917d add order management od the slides on server side
rougeronj
parents: 35
diff changeset
    11
    url(r'^books/(?P<idBook>[0-9]+)/order$', SlidesOrder.as_view()),
102
622f5d1955b6 add 'public' boolean field to the model and an access to get the list of the public books
rougeronj
parents: 79
diff changeset
    12
    url(r'^public', PublicBooks.as_view()),
46
f909e7f2917d add order management od the slides on server side
rougeronj
parents: 35
diff changeset
    13
    url(r'^slides$', ListSlides.as_view()),
18
4d3f67ddbe72 return Stop information fetch from jamestop api in the Slide info - id to idBook and idSlide to avoid confusion
rougeronj
parents: 14
diff changeset
    14
    url(r'^slides/(?P<idSlide>[0-9]+)$', InfoSlide.as_view()),
51
032280909e65 add authentication module using Token Auth
rougeronj
parents: 46
diff changeset
    15
    url(r'^auth/', include('authentication.urls')),
13
08f34bbc70ee set up django rest framework
rougeronj
parents:
diff changeset
    16
)