Add plugin that injects middlewares