Integrate new path-to-regexp with trailing optionals (#2644)
Fix #2497 Ref pillarjs/path-to-regexp#176
This commit is contained in:
@@ -35,8 +35,7 @@ module.exports = class Date extends BaseService {
|
||||
static get route() {
|
||||
return {
|
||||
base: 'date',
|
||||
format: '([0-9]+)',
|
||||
capture: ['timestamp'],
|
||||
pattern: ':timestamp([0-9]+)',
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user