Express middleware that dispatch requests to a route based on the version