1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-15 09:05:49 +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
from pretalx.event.models.event import SLUG_CHARS
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(
f"^(?P<event>[{SLUG_CHARS}]+)/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(
f"^(?P<event>[{SLUG_CHARS}]+)/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(
f"^(?P<event>[{SLUG_CHARS}]+)/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(
f"^(?P<event>[{SLUG_CHARS}]+)/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(
f"^(?P<event>[{SLUG_CHARS}]+)/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(
2023-03-29 07:52:44 +00:00
f"^(?P<event>[{SLUG_CHARS}]+)/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(
f"^orga/event/(?P<event>[{SLUG_CHARS}]+)/settings/p/broadcast-tools/$",
2023-09-30 10:39:30 +00:00
BroadcastToolsOrgaView.as_view(),
name="orga",
),
]