Pre-release v5.0.0-rc5
Pre-release
Pre-release
·
144 commits
to master
since this release
- Added a name to special routes (the
notFound
andmethodNotAllowed
routes) so it is possible to know if there was no matched route from inside a global middleware. testutil.TestMiddleware
now also copies therequest.Route
.⚠️ The auth middleware is now only executed if the matched route (or one of its parents) have the metaauth.MetaAuth
set totrue
. This means theauth.Middleware
is now meant to be used as a global middleware. Routers and routes can be individually marked as requiring auth or not.