I have an application which serves file listings.
The application must respond to following routes:
/company/:id
/company/:id/dir
/company/:id/dir/dir
Here /company/:id
is a route with no path
specified e.g a root
directory. I was thinking for something like app.get('/company/:id/:path', ...
which obviously doesn't work.
How can I define a route which responds to all of the examples?