7
This repository has been archived on 2023-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cavemanon-wagtail-personali…/src/wagtail_personalisation/admin_urls.py
Michael Yick b8d7dd53ae Support Wagtail 4.2 (#1)
Co-authored-by: nick.moreton <nick.moreton@torchbox.com>
Co-authored-by: Nick Moreton <nick.moreton@torchbox.com>
Reviewed-on: #1
2023-05-07 03:25:48 +00:00

25 lines
613 B
Python

from django.urls import re_path
from wagtail_personalisation import views
app_name = "segment"
urlpatterns = [
re_path(r"^segment/(?P<segment_id>[0-9]+)/toggle/$", views.toggle, name="toggle"),
re_path(
r"^(?P<page_id>[0-9]+)/copy/(?P<segment_id>[0-9]+)$",
views.copy_page_view,
name="copy_page",
),
re_path(
r"^segment/toggle_segment_view/$",
views.toggle_segment_view,
name="toggle_segment_view",
),
re_path(
r"^segment/users/(?P<segment_id>[0-9]+)$",
views.segment_user_data,
name="segment_user_data",
),
]