refactor(core): Make new configs consistent (no-changelog) (#10393)

This commit is contained in:
Iván Ovejero
2024-08-14 11:30:26 +02:00
committed by GitHub
parent e640f1f42c
commit c0811b218a
14 changed files with 40 additions and 40 deletions

View File

@@ -0,0 +1,16 @@
import { Config, Env } from '../decorators';
@Config
export class PublicApiConfig {
/** Whether to disable the Public API */
@Env('N8N_PUBLIC_API_DISABLED')
disabled = false;
/** Path segment for the Public API */
@Env('N8N_PUBLIC_API_ENDPOINT')
path = 'api';
/** Whether to disable the Swagger UI for the Public API */
@Env('N8N_PUBLIC_API_SWAGGERUI_DISABLED')
swaggerUiDisabled = false;
}