n8n/packages/frontend/@n8n/rest-api-client/src/api/module-settings.ts
Iván Ovejero 6ba8e0bebe
refactor(core): Decouple module settings from frontend service (#16324)
Co-authored-by: Danny Martini <danny@n8n.io>
2025-06-18 10:00:02 +02:00

9 lines
333 B
TypeScript

import type { FrontendModuleSettings } from '@n8n/api-types';
import type { IRestApiContext } from '../types';
import { makeRestApiRequest } from '../utils';
export async function getModuleSettings(context: IRestApiContext): Promise<FrontendModuleSettings> {
return await makeRestApiRequest(context, 'GET', '/module-settings');
}