1
In a project I’m doing I want to point a specific route to a controller. In a simple case of a route with parameters I would do so:
app.get('/:lang/:activities/:activity', require('./routes/activities'));
But in this specific case the parameter activities
may have different names in different languages and there are other site routes that have 3 parameters.
How can I combine variations of activities
maintaining the functionality to be able to use req.param.activities
in the controller?