mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-29 21:31:07 -08:00
39d5e0ff87
Some checks failed
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Has been cancelled
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
29 lines
563 B
TypeScript
29 lines
563 B
TypeScript
import { GlobalConfig } from '@n8n/config';
|
|
import { Container } from '@n8n/di';
|
|
|
|
export const REST_PATH_SEGMENT = Container.get(GlobalConfig).endpoints.rest;
|
|
|
|
export const PUBLIC_API_REST_PATH_SEGMENT = Container.get(GlobalConfig).publicApi.path;
|
|
|
|
export const SUCCESS_RESPONSE_BODY = {
|
|
data: {
|
|
success: true,
|
|
},
|
|
} as const;
|
|
|
|
export const LOGGED_OUT_RESPONSE_BODY = {
|
|
data: {
|
|
loggedOut: true,
|
|
},
|
|
};
|
|
|
|
export const COMMUNITY_PACKAGE_VERSION = {
|
|
CURRENT: '0.1.0',
|
|
UPDATED: '0.2.0',
|
|
};
|
|
|
|
export const COMMUNITY_NODE_VERSION = {
|
|
CURRENT: 1,
|
|
UPDATED: 2,
|
|
};
|