Express middleware for mapping request.routes and request.paths