Update middleware.md