lot of new functionalities
This commit is contained in:
20
servers/web/exports_routes.go
Normal file
20
servers/web/exports_routes.go
Normal 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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user