Integrate new path-to-regexp with trailing optionals (#2644)

Fix #2497

Ref pillarjs/path-to-regexp#176
This commit is contained in:
Paul Melnikow
2019-01-08 18:50:47 -05:00
committed by GitHub
parent 4efe8832cf
commit d1c5378bf0
21 changed files with 41 additions and 75 deletions

View File

@@ -191,8 +191,7 @@ module.exports = class Matrix extends BaseJsonService {
static get route() {
return {
base: 'matrix',
format: '([^/]+)',
capture: ['roomAlias'],
pattern: ':roomAlias',
queryParams: ['server_fqdn'],
}
}