Files
zeekay f430c2a2db
Docker / test (push) Waiting to run
Docker / docker (push) Blocked by required conditions
release / build (push) Waiting to run
fix(router): idempotent Route() — replace existing entry with same Method+Path
Before: Route() always appended a new *Route[T] to group.children.
Calling GET("/healthz", ...) twice on the same group produced two
children, which caused http.ServeMux.HandleFunc to panic in BuildMux:

    panic: pattern "GET /healthz" conflicts with pattern "GET /healthz"

This bit BD on v0.40.1: an init function (BindHealthzRoute) was
invoked twice in the plugin/service composition chain, producing
the panic at app startup with no actionable error.

After: Route() scans group.children for an existing entry with the
same Method+Path. If found, replaces it (last-write-wins) instead of
appending. Routes registered once still work identically.

Test coverage: existing tools/router tests pass (no test for the
duplicate case existed before — added in a follow-up).
2026-04-13 10:25:31 -07:00
..
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00