mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Port endpoints config (no-changelog) (#10268)
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import config from '@/config';
|
||||
import { GlobalConfig } from '@n8n/config';
|
||||
import Container from 'typedi';
|
||||
|
||||
export const REST_PATH_SEGMENT = config.getEnv('endpoints.rest');
|
||||
export const REST_PATH_SEGMENT = Container.get(GlobalConfig).endpoints.rest;
|
||||
|
||||
export const PUBLIC_API_REST_PATH_SEGMENT = Container.get(GlobalConfig).publicApi.path;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user