I am pretty new to Node.js and I am facing the following issue.
My middleware started with the link api/v1/login
and a bunch of endpoints.
Then api/v1
I guess your API violates the REST constraints, at least the stateless constraint certainly. Check the uniform interface constraint of REST. It tells you how to decouple the clients from the implementation of the API. After you did that you probably won't need versioning anymore.
If you don't want to apply REST constraints, then I think the URL should contain only the major version number (to indicate non-backward compatible changes). After that you can define vendor specific MIME types or content type parameters in which you can describe the minor, review and build version numbers if you want. So your clients should send accept and content-type headers with these version parameters.
Just to mention, if you want to support multiple versions at once, you have to write documentation for each of them.