refactor(core): Port Public API config (no-changelog) (#10082)

This commit is contained in:
Iván Ovejero
2024-07-17 15:36:40 +02:00
committed by GitHub
parent b0abee7eb6
commit 8a53d6127e
8 changed files with 35 additions and 34 deletions

View File

@@ -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: {