Skip to content

Pre-release v5.0.0-rc5

Pre-release
Pre-release
Compare
Choose a tag to compare
@System-Glitch System-Glitch released this 30 Jan 14:03
· 144 commits to master since this release
2bcdd88
  • Added a name to special routes (the notFound and methodNotAllowed routes) so it is possible to know if there was no matched route from inside a global middleware.
  • testutil.TestMiddleware now also copies the request.Route.
  • ⚠️ The auth middleware is now only executed if the matched route (or one of its parents) have the meta auth.MetaAuth set to true. This means the auth.Middleware is now meant to be used as a global middleware. Routers and routes can be individually marked as requiring auth or not.