urls.py 603 Bytes
Newer Older
Lukas Burgey's avatar
Lukas Burgey committed
1

2
from django.conf.urls import url
3
from django.views.decorators.csrf import csrf_exempt
Lukas Burgey's avatar
Lukas Burgey committed
4
5

from .views import webpage, clients
6

Lukas Burgey's avatar
Lukas Burgey committed
7
URLPATTERNS = [
Lukas Burgey's avatar
Lukas Burgey committed
8
9
10
11
12
13
14
15
16
    url(r'^info', webpage.AuthInfo.as_view()),
    url(r'^request', webpage.Auth.as_view()),
    url(r'^callback', webpage.AuthCallback.as_view()),
    url(r'^logout', webpage.LogoutView.as_view()),

    url(r'^client/user', csrf_exempt(clients.user_endpoint)),
    url(r'^client/vhost', csrf_exempt(clients.vhost_endpoint)),
    url(r'^client/resource', csrf_exempt(clients.resource_endpoint)),
    url(r'^client/topic', csrf_exempt(clients.topic_endpoint)),
17
]