| changeset 51 | 032280909e65 |
| child 61 | 5abd0a9eafbc |
| 50:c641b33f910f | 51:032280909e65 |
|---|---|
1 from django.conf.urls import patterns, url |
|
2 from rest_framework.authtoken import views |
|
3 |
|
4 from authentication.views import User, AuthView |
|
5 |
|
6 |
|
7 urlpatterns = patterns('', |
|
8 url(r'^user', User.as_view()), |
|
9 url(r'^auth', AuthView.as_view(), name='auth-view'), |
|
10 url(r'^api-token-auth', views.obtain_auth_token) |
|
11 ) |