mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(core): Add an option to add additional non-ui routes (no-changelog) (#9122)
This commit is contained in:
committed by
GitHub
parent
86a20f6563
commit
1b199c08ce
@@ -256,6 +256,7 @@ export class Server extends AbstractServer {
|
||||
this.restEndpoint,
|
||||
this.endpointPresetCredentials,
|
||||
isApiEnabled() ? '' : publicApiEndpoint,
|
||||
...config.getEnv('endpoints.additionalNonUIRoutes').split(':'),
|
||||
].filter((u) => !!u);
|
||||
const nonUIRoutesRegex = new RegExp(`^/(${nonUIRoutes.join('|')})/?.*$`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user