egg-core
egg-core copied to clipboard
Port: Support custom pathToRegexpModule on app.options to master branch
This issue tracks porting the custom pathToRegexpModule feature to the master branch.
Background
- Original PR: #290 and https://github.com/eggjs/core/pull/292
- Dependencies:
- eggjs/router#18
- eggjs/egg-path-matching#11
- https://github.com/eggjs/security/pull/102
Task
- [ ] Port the custom pathToRegexpModule feature to master branch after the PR is merged
References
- Original discussion: https://github.com/eggjs/core/pull/290#issuecomment-
npm ls path-to-regexp
[email protected]
├─┬ [email protected] -> ./node_modules/.store/[email protected]/node_modules/egg-core
│ ├─┬ @eggjs/[email protected] -> ./node_modules/.store/@[email protected]/node_modules/@eggjs/router
│ │ └── [email protected] -> ./node_modules/.store/[email protected]/node_modules/path-to-regexp
│ └─┬ [email protected] -> ./node_modules/.store/[email protected]/node_modules/egg-path-matching
│ └── [email protected] -> ./node_modules/.store/[email protected]/node_modules/path-to-regexp
├─┬ [email protected] -> ./node_modules/.store/[email protected]/node_modules/egg-multipart
│ └─┬ [email protected] -> ./node_modules/.store/[email protected]/node_modules/egg-path-matching
│ └── [email protected] deduped -> ./node_modules/.store/[email protected]/node_modules/path-to-regexp
└─┬ [email protected] -> ./node_modules/.store/[email protected]/node_modules/egg-security
└─┬ [email protected] -> ./node_modules/.store/[email protected]/node_modules/egg-path-matching
└── [email protected] deduped -> ./node_modules/.store/[email protected]/node_modules/path-to-regexp
https://github.com/eggjs/core/pull/292