Added support for route-specific middleware