| author | ymh <ymh.work@gmail.com> |
| Mon, 08 Jun 2015 09:36:41 +0200 | |
| changeset 135 | 27065f8a19d3 |
| parent 134 | server/ammicossrv/authentication/urls.py@a84aa262847c |
| child 149 | 8e117699857a |
| permissions | -rw-r--r-- |
| 51 | 1 |
from django.conf.urls import patterns, url |
2 |
from rest_framework.authtoken import views |
|
3 |
||
| 135 | 4 |
from ammicosrv.authentication.views import User, ObtainAuthToken |
| 51 | 5 |
|
6 |
||
7 |
urlpatterns = patterns('', |
|
8 |
url(r'^user', User.as_view()), |
|
|
108
4a152f5f4a09
update user model to authenticate with the email as username
rougeronj
parents:
61
diff
changeset
|
9 |
url(r'^api-token-auth', ObtainAuthToken.as_view()), |
| 51 | 10 |
) |