n8n/packages/cli/src/controllers/module-settings.controller.ts
2025-08-19 14:48:33 +03:00

17 lines
409 B
TypeScript

import { Get, RestController } from '@n8n/decorators';
import { FrontendService } from '@/services/frontend.service';
@RestController('/module-settings')
export class ModuleSettingsController {
constructor(private readonly frontendService: FrontendService) {}
/**
* @returns settings for all loaded modules
*/
@Get('/')
getModuleSettings() {
return this.frontendService.getModuleSettings();
}
}