server/authentication/urls.py
author rougeronj
Thu, 04 Jun 2015 20:07:25 +0200
changeset 111 6b397990e314
parent 108 4a152f5f4a09
permissions -rw-r--r--
add an ammico view to login automatically with jwt and serve the ammico app

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