Let's say I have get route like this:
app.get('/documents/format/type', function (req, res) {
var format = req.params.format,
type = req.params.type;
});
So if I make request like
http://localhost:3000/documents/json/mini
in my format and type variables will be 'json' and 'mini' respectively, but if I make request like
http://localhost:3000/documents/mini/json
not. So my question is: how can I get the same variables in different order?