server/authentication/urls.py
author rougeronj
Thu, 02 Apr 2015 11:57:39 +0200
changeset 51 032280909e65
child 61 5abd0a9eafbc
permissions -rw-r--r--
add authentication module using Token Auth

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)
)