router.get("/(profile|setting)/:username", function (req, res) {
I am trying to achieve a route that will respond to
/profile/:username
/setting/:username
I am not sure how to embedded the expression inside the route. I am getting error with this example.