API/api.medcify.app/node_modules/pm2-axon-rpc/example.js

16 lines
261 B
JavaScript
Raw Normal View History

2022-09-26 06:11:44 +00:00
exports.add = function(a, b, fn){
fn(null, a + b);
};
exports.sub = function(a, b, fn){
fn(null, a - b);
};
exports.uppercase = function(str, fn){
fn(null, str.toUpperCase());
};
exports.lowercase = function(str, fn){
fn(null, str.toLowerCase());
};