From 8e0c55230ef59869bda1ca19ca8697b447d57698 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Sun, 6 Sep 2026 12:38:16 +0200 Subject: Preview: analyze a raw GPX or FIT file without persisting it --- web/server.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web/server.go') diff --git a/web/server.go b/web/server.go index bde45ca..c588696 100644 --- a/web/server.go +++ b/web/server.go @@ -45,6 +45,9 @@ func (s *Server) Handler() http.Handler { mux := http.NewServeMux() mux.Handle("GET /static/", http.FileServer(http.FS(staticFiles))) handleRoute(mux, "GET /", s.handleRides) + handleRoute(mux, "GET /preview", s.handlePreviewForm) + handleRoute(mux, "POST /preview", s.handlePreview) + handleRoute(mux, "POST /preview/official-climbs", s.handlePreviewOfficialClimb) handleRoute(mux, "GET /rides/{id}", s.handleRide) handleRoute(mux, "GET /analytics", s.handleAnalytics) handleRoute(mux, "POST /rides/{id}/official-climbs", s.handleCreateOfficialClimb) -- cgit v1.3