Link to home
Start Free TrialLog in
Avatar of KRUNAL TAILOR
KRUNAL TAILOR

asked on

how to change call path of url in node.js with express?

Hi all,

I have running node.js application on my server.

I wan't to add version in the url. i.e. version 1 - v1
Current Url: https://myapplicationdomain.com/ (old)
New Version Url: https://myapplicationdomain.com/v1/ (new)

So, i can query all the function by adding v1 in the url, like
Old Login request: https://myapplicationdomain.com/login?username=
New Login request: https://myapplicationdomain.com/v1/login?username=

So, how to achieve this, How can i make "v1" in my url for request call.

Any help is appreciated.


Thanks & Regards,
Krunal T. Tailor
ASKER CERTIFIED SOLUTION
Avatar of KRUNAL TAILOR
KRUNAL TAILOR

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial