I am trying to make an URL which accepts a query after "?" operator , which will looks like this "/search?q=" . The question how should I make this particular URL in express JS and also how I can integrate an "&" operator in it .
You just need to register a route /search and all query parameters will be in req.query. It supports & for several parameters as well as a parameter with several values like this ?q=1&q=2&q=3.