'Achieving this type of route in node.js with express.js /a/b/c
I tried to look for this type of routing URL but either found lots of params which I know express can achieve etc., but was looking for something like this:
/football/italy/seria-a etc. so like imagine having all data about football, then I go to Italy then to seria-a I mean a very common URL in websites, don't know how to achieve this with nodejs and express, I know how to do the /aaa or /aaa/:id or name etc. the param.
Would like to achieve this, but have no idea how to do the multiple / or also something like this /products/category/:id, in this case I have a param in this long URL.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
