add api registration to plugin

This commit is contained in:
Iuri Matias 2018-03-13 06:23:12 -04:00
parent 4554face77
commit 907f5ebdaa

View File

@ -206,7 +206,6 @@ Plugin.prototype.registerActionForEvent = function(eventName, cb) {
};
Plugin.prototype.registerAPICall = function(method, endpoint, cb) {
console.dir("registerAPICall " + method + " " + endpoint);
this.apiCalls.push({method: method, endpoint: endpoint, cb: cb});
this.pluginTypes.push('apiCalls');
};