This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Author: Ohm Trivedi */ | |
/*API Plugin */ | |
const util = require('util'); | |
module.exports = function api(options) { | |
let seneca = this; | |
seneca.add('role:api,path:msOne', function (msg, respond) { | |
// console.log(msg); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function api(options) { | |
let seneca = this; | |
seneca.add('role:api,path:msOne', function (msg, respond) { | |
// console.log(msg); | |
let { operation } = msg.args.params; | |
let { target } = msg.args.query; | |
// let operation = msg.args.body.operation; | |
// let target = msg.args.body.remote_ip; | |
if (operation == 'fpOS') { |