labstack / echox

Echo cookbook and website
https://echo.labstack.com
MIT License
406 stars 286 forks source link

docs: Remove incorrect note about registration of middleware #270

Closed molszowy closed 1 year ago

molszowy commented 1 year ago

As per discussion in https://github.com/labstack/echo/pull/1660, it seems the documentation is incorrect:

Middleware registered using Echo#Use() is only executed for paths which are registered after Echo#Use() has been called.

https://echo.labstack.com/middleware/#overview

The middleware registered by Echo#Use() gets applied to all registered routes regardless of order.