Variable number of route params in express?

Viewed 2170

cex.io's RESTful API has an interesting route with a variable amount of parameters returning pairs of all currencies given.

How is this achieved in express?

Here's a pseudocode-type example of what I mean...

app.get('/pairs/:arg1/:arg2/:argn...', function(req, res, next) {
    // app logic
});
3 Answers
Related