server/authentication/urls.py
changeset 51 032280909e65
child 61 5abd0a9eafbc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/authentication/urls.py	Thu Apr 02 11:57:39 2015 +0200
@@ -0,0 +1,11 @@
+from django.conf.urls import patterns, url
+from rest_framework.authtoken import views
+
+from authentication.views import User, AuthView
+
+
+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)
+)