Regex for route matching in Express

app.get('/:type(discussion|page)/:id', ...) works

Leave a Comment