Paul Melnikow
47e8cc3de3
Refactor route functions in BaseService ( #2860 )
...
The route helper functions are fairly well isolated from the rest of BaseService, with a few convenient entry points. They are easier to test in isolation.
The way the code was written before, `pathToRegexp` was invoked once for every request, which seems inefficient.
`route` was validated when it was used, though it seems more helpful to validate it up front.
This breaks out `_makeFullUrl`, `_regex`, `_regexFromPath` into new helper functions `makeFullUrl`, `assertValidRoute`, `prepareRoute`, and `namedParamsForMatch`.
It adds validation to route, and updates the services without patterns to include one, in order to pass the new validation rules.
2019-01-26 02:38:12 -05:00
..
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-22 23:52:13 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-26 02:38:12 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-26 02:38:12 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-26 02:38:12 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-25 12:51:41 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-22 23:52:13 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-26 02:38:12 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-26 02:38:12 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-22 23:52:13 -05:00
2019-01-26 02:38:12 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-22 23:52:13 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-23 18:14:26 -06:00
2019-01-26 02:38:12 -05:00
2019-01-26 02:38:12 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-21 15:41:24 -05:00
2019-01-10 21:18:43 -05:00
2019-01-24 22:55:10 -05:00
2019-01-22 23:52:13 -05:00
2019-01-24 22:55:10 -05:00
2019-01-26 02:38:12 -05:00
2018-11-14 17:28:15 -05:00
2019-01-22 23:52:13 -05:00
2019-01-21 15:33:43 -05:00
2018-11-14 17:28:15 -05:00
2019-01-14 19:39:06 +00:00
2018-12-19 15:45:22 -05:00