fix(cli): When no excludeEndpoints are defined, use the correct regexp for the history middleware (#4036)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2022-09-06 12:46:32 +02:00 committed by GitHub
parent 88c15a9d7b
commit 637863ea02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -673,7 +673,7 @@ class App {
this.restEndpoint,
this.endpointWebhook,
this.endpointWebhookTest,
...excludeEndpoints.split(':'),
...(excludeEndpoints.length ? excludeEndpoints.split(':') : []),
].join('|')})/?.*$`,
),
to: (context) => {