2021-11-22 11:09:01 +00:00
|
|
|
from django.urls import re_path
|
2024-08-09 09:12:11 +00:00
|
|
|
from pretalx.event.models.event import SLUG_REGEX
|
2021-11-22 11:09:01 +00:00
|
|
|
|
2023-09-30 10:39:30 +00:00
|
|
|
from .views.event_info import BroadcastToolsEventInfoView
|
|
|
|
from .views.orga import BroadcastToolsOrgaView
|
|
|
|
from .views.qr import BroadcastToolsFeedbackQrCodeSvg, BroadcastToolsPublicQrCodeSvg
|
|
|
|
from .views.schedule import BroadcastToolsScheduleView
|
|
|
|
from .views.static_html import BroadcastToolsLowerThirdsView, BroadcastToolsRoomInfoView
|
2021-11-22 11:09:01 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
re_path(
|
2024-08-09 09:12:11 +00:00
|
|
|
rf"^(?P<event>{SLUG_REGEX})/p/broadcast-tools/event.json$",
|
2023-09-30 10:39:30 +00:00
|
|
|
BroadcastToolsEventInfoView.as_view(),
|
2021-11-22 11:09:01 +00:00
|
|
|
name="event_info",
|
|
|
|
),
|
2023-03-29 07:52:44 +00:00
|
|
|
re_path(
|
2024-08-09 09:12:11 +00:00
|
|
|
f"^(?P<event>{SLUG_REGEX})/p/broadcast-tools/schedule.json$",
|
2023-09-30 10:39:30 +00:00
|
|
|
BroadcastToolsScheduleView.as_view(),
|
2023-03-29 07:52:44 +00:00
|
|
|
name="schedule",
|
|
|
|
),
|
|
|
|
re_path(
|
2024-08-09 09:12:11 +00:00
|
|
|
f"^(?P<event>{SLUG_REGEX})/p/broadcast-tools/lower-thirds/$",
|
2023-09-30 10:39:30 +00:00
|
|
|
BroadcastToolsLowerThirdsView.as_view(),
|
2023-03-29 07:52:44 +00:00
|
|
|
name="lowerthirds",
|
|
|
|
),
|
2023-02-28 08:51:07 +00:00
|
|
|
re_path(
|
2024-08-09 09:12:11 +00:00
|
|
|
f"^(?P<event>{SLUG_REGEX})/p/broadcast-tools/feedback-qr/(?P<talk>[0-9]+).svg$",
|
2023-09-30 10:39:30 +00:00
|
|
|
BroadcastToolsFeedbackQrCodeSvg.as_view(),
|
2023-02-28 08:51:07 +00:00
|
|
|
name="feedback_qr_id",
|
|
|
|
),
|
2023-02-28 17:49:29 +00:00
|
|
|
re_path(
|
2024-08-09 09:12:11 +00:00
|
|
|
f"^(?P<event>{SLUG_REGEX})/p/broadcast-tools/public-qr/(?P<talk>[0-9]+).svg$",
|
2023-09-30 10:39:30 +00:00
|
|
|
BroadcastToolsPublicQrCodeSvg.as_view(),
|
2023-02-28 17:49:29 +00:00
|
|
|
name="public_qr_id",
|
|
|
|
),
|
2021-11-22 11:09:01 +00:00
|
|
|
re_path(
|
2024-08-09 09:12:11 +00:00
|
|
|
f"^(?P<event>{SLUG_REGEX})/p/broadcast-tools/room-info/$",
|
2023-09-30 10:39:30 +00:00
|
|
|
BroadcastToolsRoomInfoView.as_view(),
|
2023-03-29 07:52:44 +00:00
|
|
|
name="room_info",
|
2021-11-22 11:09:01 +00:00
|
|
|
),
|
|
|
|
re_path(
|
2024-08-09 09:12:11 +00:00
|
|
|
f"^orga/event/(?P<event>{SLUG_REGEX})/settings/p/broadcast-tools/$",
|
2023-09-30 10:39:30 +00:00
|
|
|
BroadcastToolsOrgaView.as_view(),
|
2021-11-22 11:09:01 +00:00
|
|
|
name="orga",
|
|
|
|
),
|
|
|
|
]
|