Fix duplicate UI routes in calendar - keep only in ui.rs

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-01-13 23:02:51 -03:00
parent d3a3811c07
commit 204703ae92

View file

@ -1009,8 +1009,4 @@ pub fn configure_calendar_routes() -> Router<Arc<AppState>> {
.route(ApiUrls::CALENDAR_EVENTS, get(list_events).post(create_event))
.route(ApiUrls::CALENDAR_EVENT_BY_ID, get(get_event).put(update_event).delete(delete_event))
.route(ApiUrls::CALENDAR_UPCOMING_JSON, get(upcoming_events_api))
.route(ApiUrls::CALENDAR_CALENDARS, get(list_calendars_html))
.route(ApiUrls::CALENDAR_UPCOMING, get(upcoming_events_html))
.route(ApiUrls::CALENDAR_NEW_EVENT_FORM, get(new_event_form))
.route(ApiUrls::CALENDAR_NEW_CALENDAR_FORM, get(new_calendar_form))
}