WIP: note for next session
This commit is contained in:
parent
c039e8709e
commit
50f3748ed2
@ -32,6 +32,7 @@ func NewRouter() Router {
|
|||||||
return Router{cache: cache}
|
return Router{cache: cache}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIX: figure out the right middleware pattern or way to inject route info
|
||||||
func WithRouteInfo(ri RouteInfo) func(http.Handler) http.Handler {
|
func WithRouteInfo(ri RouteInfo) func(http.Handler) http.Handler {
|
||||||
return func(next http.Handler) http.Handler {
|
return func(next http.Handler) http.Handler {
|
||||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user