mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-11 14:46:56 +00:00
add api registration to plugin
This commit is contained in:
parent
4554face77
commit
907f5ebdaa
@ -206,7 +206,6 @@ Plugin.prototype.registerActionForEvent = function(eventName, cb) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Plugin.prototype.registerAPICall = function(method, endpoint, cb) {
|
Plugin.prototype.registerAPICall = function(method, endpoint, cb) {
|
||||||
console.dir("registerAPICall " + method + " " + endpoint);
|
|
||||||
this.apiCalls.push({method: method, endpoint: endpoint, cb: cb});
|
this.apiCalls.push({method: method, endpoint: endpoint, cb: cb});
|
||||||
this.pluginTypes.push('apiCalls');
|
this.pluginTypes.push('apiCalls');
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user