refactor(core): Make new configs consistent (no-changelog) (#10393)
This commit is contained in:
16
packages/@n8n/config/src/configs/public-api.config.ts
Normal file
16
packages/@n8n/config/src/configs/public-api.config.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user