49 lines
1.8 KiB
Python
49 lines
1.8 KiB
Python
|
|
from django.urls import path
|
||
|
|
|
||
|
|
from .api.views import (
|
||
|
|
BackupView,
|
||
|
|
ContactDetailView,
|
||
|
|
ContactFieldDetailView,
|
||
|
|
ContactGroupDetailView,
|
||
|
|
ContactGroupListCreateView,
|
||
|
|
ContactListCreateView,
|
||
|
|
GroupFieldListCreateView,
|
||
|
|
MessageTemplateDetailView,
|
||
|
|
MessageTemplateListCreateView,
|
||
|
|
StructuredTemplateDetailView,
|
||
|
|
StructuredTemplateFieldDetailView,
|
||
|
|
StructuredTemplateFieldListCreateView,
|
||
|
|
StructuredTemplateListCreateView,
|
||
|
|
)
|
||
|
|
|
||
|
|
app_name = "banker"
|
||
|
|
urlpatterns = [
|
||
|
|
path("backup/", BackupView.as_view(), name="backup"),
|
||
|
|
path("groups/", ContactGroupListCreateView.as_view(), name="group-list"),
|
||
|
|
path("groups/<str:pk>/", ContactGroupDetailView.as_view(), name="group-detail"),
|
||
|
|
path("groups/<str:group_id>/fields/", GroupFieldListCreateView.as_view(), name="group-field-list"),
|
||
|
|
path("fields/<str:pk>/", ContactFieldDetailView.as_view(), name="field-detail"),
|
||
|
|
path("contacts/", ContactListCreateView.as_view(), name="contact-list"),
|
||
|
|
path("contacts/<str:pk>/", ContactDetailView.as_view(), name="contact-detail"),
|
||
|
|
path("templates/", MessageTemplateListCreateView.as_view(), name="template-list"),
|
||
|
|
path("templates/<str:pk>/", MessageTemplateDetailView.as_view(), name="template-detail"),
|
||
|
|
path(
|
||
|
|
"structured-templates/", StructuredTemplateListCreateView.as_view(), name="structured-template-list"
|
||
|
|
),
|
||
|
|
path(
|
||
|
|
"structured-templates/<str:pk>/",
|
||
|
|
StructuredTemplateDetailView.as_view(),
|
||
|
|
name="structured-template-detail",
|
||
|
|
),
|
||
|
|
path(
|
||
|
|
"structured-templates/<str:template_id>/fields/",
|
||
|
|
StructuredTemplateFieldListCreateView.as_view(),
|
||
|
|
name="structured-template-field-list",
|
||
|
|
),
|
||
|
|
path(
|
||
|
|
"structured-template-fields/<str:pk>/",
|
||
|
|
StructuredTemplateFieldDetailView.as_view(),
|
||
|
|
name="structured-template-field-detail",
|
||
|
|
),
|
||
|
|
]
|