server/src/authentication/urls.py
author ymh <ymh.work@gmail.com>
Mon, 08 Jun 2015 00:37:27 +0200
changeset 128 d4e5954f2ad4
parent 117 41a78460bdac
child 143 ea633c8f9bfa
permissions -rw-r--r--
execfile in python 3 and 2

from django.conf.urls import patterns, url
from rest_framework.authtoken import views

from authentication.views import User, ObtainAuthToken


urlpatterns = patterns('',
    url(r'^user', User.as_view()),
    url(r'^api-token-auth', ObtainAuthToken.as_view()),
)