fling
Version:
JSON Fling is a simple JSON-RPC framework for NodeJS with built-in permissions and support for different transports.
22 lines (14 loc) • 314 B
JavaScript
;
module.exports.action = function ( request, response ) {
var output = request.getParams();
output.injectedData = {
you: ['should'],
see: {
this: 'data '
}
};
response.send( output );
};
module.exports.action2 = function ( request, response ) {
response.send( { action: 2 } );
};