2018-11-11 12:41:48 +00:00
|
|
|
"""passbook URL Configuration"""
|
2018-11-16 12:08:37 +00:00
|
|
|
from django.urls import path
|
2018-11-11 12:41:48 +00:00
|
|
|
|
2018-12-10 13:13:18 +00:00
|
|
|
from passbook.admin.views import (applications, invites, overview, providers,
|
|
|
|
rules, sources)
|
2018-11-11 12:41:48 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2018-11-16 08:10:35 +00:00
|
|
|
path('', overview.AdministrationOverviewView.as_view(), name='overview'),
|
2018-11-26 21:08:18 +00:00
|
|
|
# Applications
|
2018-11-16 08:10:35 +00:00
|
|
|
path('applications/', applications.ApplicationListView.as_view(),
|
2018-11-16 12:08:37 +00:00
|
|
|
name='applications'),
|
2018-11-11 12:41:48 +00:00
|
|
|
path('applications/create/', applications.ApplicationCreateView.as_view(),
|
2018-11-16 08:10:35 +00:00
|
|
|
name='application-create'),
|
2018-11-26 21:08:18 +00:00
|
|
|
path('applications/<uuid:pk>/update/',
|
|
|
|
applications.ApplicationUpdateView.as_view(), name='application-update'),
|
|
|
|
path('applications/<uuid:pk>/delete/',
|
|
|
|
applications.ApplicationDeleteView.as_view(), name='application-delete'),
|
2018-11-26 21:09:04 +00:00
|
|
|
# Sources
|
2018-11-22 12:11:46 +00:00
|
|
|
path('sources/', sources.SourceListView.as_view(), name='sources'),
|
|
|
|
path('sources/create/', sources.SourceCreateView.as_view(), name='source-create'),
|
|
|
|
path('sources/<uuid:pk>/update/', sources.SourceUpdateView.as_view(), name='source-update'),
|
|
|
|
path('sources/<uuid:pk>/delete/', sources.SourceDeleteView.as_view(), name='source-delete'),
|
2018-11-26 21:08:48 +00:00
|
|
|
# Rules
|
|
|
|
path('rules/', rules.RuleListView.as_view(), name='rules'),
|
|
|
|
path('rules/create/', rules.RuleCreateView.as_view(), name='rule-create'),
|
|
|
|
path('rules/<uuid:pk>/update/', rules.RuleUpdateView.as_view(), name='rule-update'),
|
|
|
|
path('rules/<uuid:pk>/delete/', rules.RuleDeleteView.as_view(), name='rule-delete'),
|
2018-11-30 14:50:27 +00:00
|
|
|
path('rules/<uuid:pk>/test/', rules.RuleTestView.as_view(), name='rule-test'),
|
2018-11-26 21:40:10 +00:00
|
|
|
# Providers
|
|
|
|
path('providers/', providers.ProviderListView.as_view(), name='providers'),
|
|
|
|
path('providers/create/',
|
|
|
|
providers.ProviderCreateView.as_view(), name='provider-create'),
|
2018-12-09 20:04:57 +00:00
|
|
|
path('providers/<int:pk>/update/',
|
2018-11-26 21:40:10 +00:00
|
|
|
providers.ProviderUpdateView.as_view(), name='provider-update'),
|
2018-12-09 20:04:57 +00:00
|
|
|
path('providers/<int:pk>/delete/',
|
2018-11-26 21:40:10 +00:00
|
|
|
providers.ProviderDeleteView.as_view(), name='provider-delete'),
|
2018-12-10 13:13:18 +00:00
|
|
|
# Invites
|
|
|
|
path('invites/', invites.InviteListView.as_view(), name='invites'),
|
|
|
|
path('invites/create/', invites.InviteCreateView.as_view(), name='invite-create'),
|
|
|
|
path('invites/<uuid:pk>/update/', invites.InviteUpdateView.as_view(), name='invite-update'),
|
|
|
|
path('invites/<uuid:pk>/delete/', invites.InviteDeleteView.as_view(), name='invite-delete'),
|
2018-11-16 08:10:35 +00:00
|
|
|
# path('api/v1/', include('passbook.admin.api.v1.urls'))
|
2018-11-11 12:41:48 +00:00
|
|
|
]
|