🛠 conditional public api endpoints excluding

This commit is contained in:
Ben Hesseldieck 2022-04-29 03:11:20 +02:00
parent fc0bd9f07c
commit a74bce631c

View file

@ -391,8 +391,10 @@ class App {
this.endpointWebhook,
this.endpointWebhookTest,
this.endpointPresetCredentials,
this.publicApiEndpoint,
];
if (!config.getEnv('publicApiEndpoints.disable')) {
ignoredEndpoints.push(this.publicApiEndpoint);
}
// eslint-disable-next-line prefer-spread
ignoredEndpoints.push.apply(ignoredEndpoints, excludeEndpoints.split(':'));