fix(server): handle router setup panic and return error

* return error from New function if route registration panics
* add googleDispatch to handle model:action routing
This commit is contained in:
2026-04-11 21:03:29 +02:00
parent c5608bf5cd
commit c12e16c9f7
4 changed files with 52 additions and 9 deletions

View File

@@ -7,7 +7,10 @@ import (
type contextKey int
const traceKey contextKey = iota
const (
traceKey contextKey = iota
modelKey
)
// RequestTrace holds per-request timing data populated by handlers and middleware.
type RequestTrace struct {