1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-15 03:06:09 +00:00
pretalx-plugin-broadcast-tools/pretalx_broadcast_tools/urls.py

47 lines
1.6 KiB
Python
Raw Normal View History

from django.urls import re_path
2024-08-09 09:12:11 +00:00
from pretalx.event.models.event import SLUG_REGEX
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
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(),
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",
),
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(),
name="feedback_qr_id",
),
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(),
name="public_qr_id",
),
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",
),
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(),
name="orga",
),
]