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,14 @@
package web
import (
"github.com/gorilla/mux"
)
func (ws *WebServer) setupJourneysRoutes(appRouter *mux.Router) {
journeys := appRouter.PathPrefix("/journeys").Subrouter()
journeys.HandleFunc("/", ws.appHandler.JourneysSearchHTTPHandler())
journeys.HandleFunc("/search", ws.appHandler.JourneysSearchCompactHTTPHandler())
journeys.HandleFunc("/save", ws.appHandler.SaveSearchHTTPHandler()).Methods("GET")
journeys.HandleFunc("/saved-searches/{id}/delete", ws.appHandler.DeleteSavedSearchHTTPHandler()).Methods("GET")
}