pm2/examples/null.js
2015-08-03 16:48:25 +02:00

15 lines
372 B
JavaScript

var pmx = require('pmx');
var http = require('http');
http.createServer(function(req, res) {
res.end('Thanks');
}).listen(5445);
pmx.action('db:test', {comment: 'Simply test'}, function(reply) {
reply({test: "WOWOWOWOWOW", length: 12});
});
pmx.action('throw', {comment: 'Simply test'}, function(reply) {
throw { success : 'false', length: 12 };
});