server/ammicosrv/authentication/urls.py
author rougeronj
Thu, 11 Jun 2015 16:19:36 +0200
changeset 172 ffdfe491869c
parent 149 8e117699857a
permissions -rw-r--r--
uncomment jshint and fix minor bug rename myCustomer to imgType (customer to check if image is portrait or landscape)
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
135
27065f8a19d3 correct rename of src
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
     3
from ammicosrv.authentication.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
)