Make route:list work with middleware
Merge pull request #6022 from aFreshMelon/patch-2

[5.0] Make route:list Work With Middleware