API Versioning in URL in NodeJS


I know that it is recommended to version API changes by Continuous Evolution (https://graphql.org/learn/best-practices/).

But if we want to version by URL, e.g. localhost/api/v1/, localhost/api/v2/, … how is the best practice to implement that in NodeJS?

E.g.: Creating for two versions, two ApolloGraphQL Server and “merge” them by ExpressServer for example, which handles then the redirection to v1 or v2?

Kind regards