mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🛠 conditional public api endpoints excluding
This commit is contained in:
parent
fc0bd9f07c
commit
a74bce631c
|
@ -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(':'));
|
||||
|
||||
|
|
Loading…
Reference in a new issue