fix(core): Add an option to add additional non-ui routes (no-changelog) (#9122)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-04-11 12:20:29 +02:00
committed by GitHub
parent 86a20f6563
commit 1b199c08ce
2 changed files with 7 additions and 0 deletions

View File

@@ -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('|')})/?.*$`);