Get a report
This commit is contained in:
@ -25,6 +25,11 @@ module.exports.run = function(worker) {
|
||||
if (!store) store = createStore(worker.options);
|
||||
|
||||
switch(req.body.op) {
|
||||
case 'get':
|
||||
store.get(req.body.id).then(function(r) {
|
||||
res.send(r || {});
|
||||
});
|
||||
break;
|
||||
default:
|
||||
store.add(req.body).then(function(r) {
|
||||
scServer.exchange.publish('log', req.body);
|
||||
|
Reference in New Issue
Block a user