mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
🔨 Infer typings for config schema (#2656)
* 🚚 Move schema to standalone file * ⚡ Add assertions to string literal arrays * ✨ Infer typings for convict schema * 🔥 Remove unneeded assertions * 🔨 Fix errors surfaced by typings * ⚡ Type nodes.include/exclude per docs * ⚡ Account for types for exception paths * ⚡ Set method alias to flag incorrect paths * ⚡ Replace original with alias * ⚡ Make allowance for nodes.include * ⚡ Adjust leftover calls * 🔀 Fix conflicts * 🔥 Remove unneeded castings * 📘 Simplify exception path type * 📦 Update package-lock.json * 🔥 Remove unneeded imports * 🔥 Remove unrelated file * ⚡ Update schema * ⚡ Update interface * 📦 Update package-lock.json * 📦 Update package-lock.json * 🔥 Remove leftover assertions Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import config = require('../../../config');
|
||||
|
||||
export const REST_PATH_SEGMENT = config.get('endpoints.rest') as Readonly<string>;
|
||||
export const REST_PATH_SEGMENT = config.getEnv('endpoints.rest') as Readonly<string>;
|
||||
|
||||
export const AUTHLESS_ENDPOINTS: Readonly<string[]> = [
|
||||
'healthz',
|
||||
'metrics',
|
||||
config.get('endpoints.webhook') as string,
|
||||
config.get('endpoints.webhookWaiting') as string,
|
||||
config.get('endpoints.webhookTest') as string,
|
||||
config.getEnv('endpoints.webhook'),
|
||||
config.getEnv('endpoints.webhookWaiting'),
|
||||
config.getEnv('endpoints.webhookTest'),
|
||||
];
|
||||
|
||||
export const SUCCESS_RESPONSE_BODY = {
|
||||
|
||||
Reference in New Issue
Block a user