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