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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user