lot of new functionalities

This commit is contained in:
Arnaud Delcasse
2025-10-14 18:11:13 +02:00
parent a6f70a6e85
commit d992a7984f
164 changed files with 15113 additions and 9442 deletions

View File

@@ -0,0 +1,20 @@
package web
import (
"github.com/gorilla/mux"
)
func (ws *WebServer) setupExportsRoutes(r *mux.Router) {
export := r.PathPrefix("/exports").Subrouter()
export.HandleFunc("/fleets/bookings/all_bookings.xlsx", ws.exportsHandler.AllFleetBookings)
export.HandleFunc("/fleets/bookings/group_bookings.xlsx", ws.exportsHandler.FleetBookingsInGroup)
export.HandleFunc("/agenda/subscriptions", ws.exportsHandler.AllAgendaEvents)
export.HandleFunc("/agenda/{eventid}", ws.exportsHandler.SingleAgendaEvent)
export.HandleFunc("/solidarity-transport/bookings.xlsx", ws.exportsHandler.SolidarityTransportBookings)
export.HandleFunc("/solidarity-transport/drivers.xlsx", ws.exportsHandler.SolidarityTransportDrivers)
export.HandleFunc("/organized-carpool/bookings.xlsx", ws.exportsHandler.OrganizedCarpoolBookings)
export.HandleFunc("/organized-carpool/drivers.xlsx", ws.exportsHandler.OrganizedCarpoolDrivers)
export.Use(ws.idp.Middleware)
export.Use(ws.idp.GroupsMiddleware)
}