Ability to add middlewares in the configuration