mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
19 lines
355 B
JavaScript
19 lines
355 B
JavaScript
|
|
var axm = require('pmx');
|
|
|
|
axm.action('getEnv', function(reply) {
|
|
reply(process.env);
|
|
});
|
|
|
|
axm.action('sayHello', function(reply) {
|
|
reply({
|
|
msg : 'Yes hello and so? Xie Xie'
|
|
});
|
|
});
|
|
|
|
axm.action('throwError', function(reply) {
|
|
//@todo : replying a error does not work
|
|
reply(new Error('Error thrown'));
|
|
throw new Error('asdadsadsasd');
|
|
});
|