server/authentication/urls.py
changeset 61 5abd0a9eafbc
parent 51 032280909e65
child 108 4a152f5f4a09
--- a/server/authentication/urls.py	Fri Apr 03 10:44:34 2015 +0200
+++ b/server/authentication/urls.py	Fri Apr 03 15:01:41 2015 +0200
@@ -1,11 +1,10 @@
 from django.conf.urls import patterns, url
 from rest_framework.authtoken import views
 
-from authentication.views import User, AuthView
+from authentication.views import User, ObtainAuthToken
 
 
 urlpatterns = patterns('',
     url(r'^user', User.as_view()),
-    url(r'^auth', AuthView.as_view(), name='auth-view'),
-    url(r'^api-token-auth', views.obtain_auth_token)
+    url(r'^api-token-auth', ObtainAuthToken.as_view())
 )