gocraft / web

Go Router + Middleware. Your Contexts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

subrouter middleware chaining

f0ster opened this issue · comments

Shouldn't subrouter's be using the same middleware chained to the parent? I found this wasn't the case and seemed unintuitive.

@f0ster Not sure what you mean. Middlware on parent middleware is executed before child middleware. See https://github.com/gocraft/web#request-lifecycle