aboutsummaryrefslogtreecommitdiff
path: root/web/server.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-09-06 12:38:16 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-09-06 12:38:16 +0200
commit8e0c55230ef59869bda1ca19ca8697b447d57698 (patch)
tree2d5941e95949c43a84326cc5d10db8e4fab72a64 /web/server.go
parent28a7c9f281c16d1928b37dd1afdfe8399b7a03f8 (diff)
Preview: analyze a raw GPX or FIT file without persisting it
Diffstat (limited to 'web/server.go')
-rw-r--r--web/server.go3
1 files changed, 3 insertions, 0 deletions
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)