server/src/authentication/urls.py
author rougeronj
Tue, 09 Jun 2015 19:05:05 +0200
changeset 143 ea633c8f9bfa
parent 117 41a78460bdac
permissions -rw-r--r--
add exposition table and update the views to include the new foreign key to the exposition table
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
143
ea633c8f9bfa add exposition table and update the views to include the new foreign key to the exposition table
rougeronj
parents: 117
diff changeset
     3
from .views import User, ObtainAuthToken
51
032280909e65 add authentication module using Token Auth
rougeronj
parents:
diff changeset
     4
032280909e65 add authentication module using Token Auth
rougeronj
parents:
diff changeset
     5
032280909e65 add authentication module using Token Auth
rougeronj
parents:
diff changeset
     6
urlpatterns = patterns('',
032280909e65 add authentication module using Token Auth
rougeronj
parents:
diff changeset
     7
    url(r'^user', User.as_view()),
108
4a152f5f4a09 update user model to authenticate with the email as username
rougeronj
parents: 61
diff changeset
     8
    url(r'^api-token-auth', ObtainAuthToken.as_view()),
51
032280909e65 add authentication module using Token Auth
rougeronj
parents:
diff changeset
     9
)