Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 671
  • Last Modified:

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
1 Solution
KRUNAL TAILORFreelance Mobile DeveloperAuthor Commented:
I figure out this with some different way.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now