[5.0] Make route:list work with middleware

indentation.