I have created a map with new Map() to store my RR4 configuration in my app.
I want to access the values of /countries/:id, when I get /countries/1
routesMap.get('/countries/1')
// should return the same as to routesMap.get('/countries/:id')
routesMap.get('/countries/1/comments/20');
// should match routesMap.get('/countries/:countryId/comments/:id')
By creating a class from Map, how can I tweak the get so it become more intelligent to get my react-router-dom path ?