feat: Adds json endpoint

This commit is contained in:
Vincent Mahnke 2026-01-04 13:35:16 +01:00
commit 0e259bd40f
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469
2 changed files with 187 additions and 4 deletions

View file

@ -1,10 +1,15 @@
from django.urls import path
from .api import CongressScheduleView, HackertoursMarkdownView
from .api import CongressScheduleXMLView, HackertoursMarkdownView
urlpatterns = [
path(
'api/v1/event/<str:organizer>/<str:event>/schedule.xml',
CongressScheduleView.as_view(),
CongressScheduleXMLView.as_view(),
name='schedule-xml',
),
path(
'api/v1/event/<str:organizer>/<str:event>/schedule.xml',
CongressScheduleJSONView.as_view(),
name='schedule-xml',
),
path(