mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-31 16:57:08 +02:00
17 lines
409 B
TypeScript
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();
|
|
}
|
|
}
|