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 activities
parameter can have different names in different languages and there are other routes of the site that have 3 parameters.
How can I combine variations of activities
while maintaining functionality to be able to use req.param.activities
in the controller?