I have to following route:
app.get("/download/:id/:name?",function(req,res){});
How can I make the last slash in the url optinal, if the param "name" is not given? For example, a request "/download/abc" wouldn't match this route. It would have to be "/download/abc/". Is there way to make "/download/abc" match?
app.get("/download/:id/:name?*", ...);
This works for download/parameter, but also for download/parameter/anotherparameter/...