Route templates: a route named x-* serves any request route x-<something>

Implemented-By: OpenCode session (model recorded in docs/implementer-log.md)
This commit is contained in:
2026-09-25 13:38:24 -07:00
parent 4863e53eb8
commit 4e1dd03d07
10 changed files with 344 additions and 9 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ func (hx *handler) routePin(w http.ResponseWriter, r *http.Request) {
return
}
route := r.PathValue("route")
routeCfg, ok := hx.cfg.Routes[route]
routeCfg, _, ok := hx.cfg.Route(route)
if !ok {
writeError(w, http.StatusNotFound, "unknown route")
return