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

Lukas Burgey's avatar
Lukas Burgey committed
2
from django.urls import path, include
3
from django.views.decorators.csrf import csrf_exempt
Lukas Burgey's avatar
Lukas Burgey committed
4

Lukas Burgey's avatar
Lukas Burgey committed
5
from feudal.backend.views.auth import webpage, clients
6

7
8
9
10
11
12
13
clientpatterns = [
    path('user', csrf_exempt(clients.user_endpoint)),
    path('vhost', csrf_exempt(clients.vhost_endpoint)),
    path('resource', csrf_exempt(clients.resource_endpoint)),
    path('topic', csrf_exempt(clients.topic_endpoint)),
]

Lukas Burgey's avatar
Lukas Burgey committed
14
URLPATTERNS = [
15
16
17
18
    path('info', webpage.AuthInfo.as_view()),
    path('request', webpage.Auth.as_view(), name='login'),
    path('callback', webpage.AuthCallback.as_view(), name='callback'),
    path('logout', webpage.LogoutView.as_view()),
Lukas Burgey's avatar
Lukas Burgey committed
19

20
    path('client/', include(clientpatterns)),
21
]