1

For example if the route is /share/path/to/something

can I set something up where I can get the string "/path/to/something" which might have an arbitrary number of slashes?

router.get('/share/:theResOfTheRoute', ...

I could set up a param for each part between the slashes but I don't know beforehand how many slashes there might be

MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460

0 Answers0