Closed amitguptagwl closed 6 years ago
I'm working on it
I hope you're clear with the motive behind this issue. Feel free to clear any doubt
My understanding is as below:
It should support of adding regular expression using addNameExpression
method. We will keep track of all regex into a map. Once user have defined some re-usable regex to it, they are able to use it using :regexKeyName:
in url. We need to make sure this name should get replaced with specified regex pattern before it gets registered. I assume that there can be multiple dynamic regex keys used in a url so we need to replace all of them.
Please correct me if anything wrong!
You're right.
This is how the dynamic route is added currently;
We are planning to name regular expressions used for path parameters
Named expression can be added in following two ways
Named expressions will be replaced at the time of adding the route. So it should not impact application performance.