server/authentication/urls.py
author rougeronj
Tue, 07 Apr 2015 11:55:11 +0200
changeset 72 ed2ee692ff6f
parent 61 5abd0a9eafbc
child 108 4a152f5f4a09
permissions -rw-r--r--
Update PopulateVisit function to get only the new visits from Jamespot. In case the parameter "parrent_visit" is passed when creating a book, we copy all the slide corresponding to the visit being copied. Refactor PopulateVisite to PopulateVisit.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
51
032280909e65 add authentication module using Token Auth
rougeronj
parents:
diff changeset
     1
from django.conf.urls import patterns, url
032280909e65 add authentication module using Token Auth
rougeronj
parents:
diff changeset
     2
from rest_framework.authtoken import views
032280909e65 add authentication module using Token Auth
rougeronj
parents:
diff changeset
     3
61
5abd0a9eafbc custom ObtainToken function to add PopulateVisite function when a user connects
rougeronj
parents: 51
diff changeset
     4
from authentication.views import User, ObtainAuthToken
51
032280909e65 add authentication module using Token Auth
rougeronj
parents:
diff changeset
     5
032280909e65 add authentication module using Token Auth
rougeronj
parents:
diff changeset
     6
032280909e65 add authentication module using Token Auth
rougeronj
parents:
diff changeset
     7
urlpatterns = patterns('',
032280909e65 add authentication module using Token Auth
rougeronj
parents:
diff changeset
     8
    url(r'^user', User.as_view()),
61
5abd0a9eafbc custom ObtainToken function to add PopulateVisite function when a user connects
rougeronj
parents: 51
diff changeset
     9
    url(r'^api-token-auth', ObtainAuthToken.as_view())
51
032280909e65 add authentication module using Token Auth
rougeronj
parents:
diff changeset
    10
)