Modification to the AddRoute signature and add a MiddleWare type