feat: Ajout des évenements à venir

This commit is contained in:
Luc SORIGNET
2025-03-02 16:08:26 +01:00
parent c9b0f0d77a
commit c03fa0ba42
10 changed files with 25 additions and 34 deletions

View File

@ -1,10 +1,11 @@
from django.urls import path, re_path
from Planning.views import PlanningView,PlanningWithIdView,EventsView,EventsWithIdView
from Planning.views import PlanningView,PlanningWithIdView,EventsView,EventsWithIdView,UpcomingEventsView
urlpatterns = [
re_path(r'^plannings$', PlanningView.as_view(), name="planning"),
re_path(r'^plannings/(?P<id>[0-9]+)$', PlanningWithIdView.as_view(), name="planning"),
re_path(r'^events$', EventsView.as_view(), name="events"),
re_path(r'^events/(?P<id>[0-9]+)$', EventsWithIdView.as_view(), name="events"),
re_path(r'^events/upcoming', UpcomingEventsView.as_view(), name="events"),
]