Specify versions in package.json, update route to check the url from the request cookies or a url parameter, use cookie parser for request cookies.