n8n-nodes-nocodb-self-host
Version:
Custom n8n node for Nocodb Self Host.
17 lines • 586 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.appCustomApiRequest = void 0;
async function appCustomApiRequest(method, endpoint, body, baseUrl, headers) {
const options = {
method,
uri: baseUrl ? `${baseUrl}/${endpoint}` : endpoint,
json: true,
headers: headers || {},
};
if (method !== 'GET') {
options.body = body;
}
return await this.helpers.request.call(this, options);
}
exports.appCustomApiRequest = appCustomApiRequest;
//# sourceMappingURL=GenericFunctions.js.map