Added a method to fetch all enabled middlewares