refactor(urls.py): rewrite paths after EventOccurrence addition
This commit is contained in:
@@ -22,17 +22,30 @@ urlpatterns = [
|
|||||||
path("i18n/", include("django.conf.urls.i18n")),
|
path("i18n/", include("django.conf.urls.i18n")),
|
||||||
path("calendar/", views.calendar, name="calendar"),
|
path("calendar/", views.calendar, name="calendar"),
|
||||||
path(
|
path(
|
||||||
"api/calendar/events/",
|
"occurrence/<int:occurrence_id>/",
|
||||||
views.get_calendar_events,
|
views.occurrence_detail,
|
||||||
name="get_calendar_events",
|
name="occurrence_detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"api/calendar/events/<int:event_id>/",
|
"api/calendar/occurrences/",
|
||||||
views.get_calendar_event,
|
views.get_calendar_occurrences,
|
||||||
name="get_calendar_event",
|
name="get_calendar_occurrences",
|
||||||
|
),
|
||||||
|
path(
|
||||||
|
"api/calendar/occurrences/<int:occurrence_id>/",
|
||||||
|
views.get_calendar_occurrence,
|
||||||
|
name="get_calendar_occurrence",
|
||||||
|
),
|
||||||
|
path(
|
||||||
|
"occurrence/<int:occurrence_id>/signup/",
|
||||||
|
views.occurrence_signup,
|
||||||
|
name="occurrence_signup",
|
||||||
|
),
|
||||||
|
path(
|
||||||
|
"occurrence/<int:occurrence_id>/signout/",
|
||||||
|
views.occurrence_signout,
|
||||||
|
name="occurrence_signout",
|
||||||
),
|
),
|
||||||
path("event/<int:event_id>/signup/", views.event_signup, name="event_signup"),
|
|
||||||
path("event/<int:event_id>/signout/", views.event_signout, name="event_signout"),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user