urls.py 610 Bytes
Newer Older
1
from django.conf.urls import url
2
3
from django.views.decorators.csrf import csrf_exempt
from . import views, client_views
4

Lukas Burgey's avatar
Lukas Burgey committed
5
URLPATTERNS = [
Lukas Burgey's avatar
Lukas Burgey committed
6
7
8
9
    url(r'^info', views.AuthInfo.as_view()),
    url(r'^request', views.Auth.as_view()),
    url(r'^callback', views.AuthCallback.as_view()),
    url(r'^logout', views.LogoutView.as_view()),
10
    url(r'^client/user', csrf_exempt(client_views.user_endpoint)),
11
12
13
    url(r'^client/vhost', csrf_exempt(client_views.vhost_endpoint)),
    url(r'^client/resource', csrf_exempt(client_views.resource_endpoint)),
    url(r'^client/topic', csrf_exempt(client_views.topic_endpoint)),
14
]