n8n-nodes-comfyuinew
Version:
43 lines • 1.44 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ComfyUIApi = void 0;
class ComfyUIApi {
constructor() {
this.name = 'comfyUIApi';
this.displayName = 'ComfyUI API';
this.documentationUrl = 'https://github.com/IA-Entertainment-git-organization/n8n-nodes-comfyuinew';
this.properties = [
{
displayName: 'API URL',
name: 'apiUrl',
type: 'string',
default: 'http://127.0.0.1:8188',
required: true,
description: 'The URL of your ComfyUI instance',
},
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: {
password: true,
},
default: '',
required: false,
description: 'API Key if authentication is enabled',
},
];
this.test = {
request: {
baseURL: '={{$credentials?.apiUrl}}',
url: '/system_stats',
method: 'GET',
headers: {
'Authorization': '={{$credentials?.apiKey ? `Bearer ${$credentials.apiKey}` : undefined}}',
},
},
};
}
}
exports.ComfyUIApi = ComfyUIApi;
//# sourceMappingURL=ComfyUIApi.credentials.js.map