server/authentication/urls.py
author rougeronj
Fri, 03 Apr 2015 15:01:41 +0200
changeset 61 5abd0a9eafbc
parent 51 032280909e65
child 108 4a152f5f4a09
permissions -rw-r--r--
custom ObtainToken function to add PopulateVisite function when a user connects

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