actionhero
Version:
actionhero.js is a multi-transport API Server with integrated cluster capabilities and delayed tasks
26 lines (22 loc) • 611 B
JavaScript
var action = {};
/////////////////////////////////////////////////////////////////////
// metadata
action.name = 'test_action';
action.description = 'I\'m just for testing';
action.inputs = {
'required' : [],
'optional' : []
};
action.blockedConnectionTypes = [];
action.outputExample = {
test: 'OK'
}
/////////////////////////////////////////////////////////////////////
// functional
action.run = function(api, connection, next){
connection.response.test = 'OK';
next(connection, true);
};
/////////////////////////////////////////////////////////////////////
// exports
exports.action = action;