lamassu-server/dev/json-rpc.js
Fabio Cigliano 1bcf586544 json-rpc parameter bugfix (#129)
* json-rpc parameter bugfix

* small change

* Update json-rpc.js
2018-07-01 15:43:58 +01:00

19 lines
407 B
JavaScript

const rpc = require('../lib/plugins/common/json-rpc')
const account = {
username: 'test',
password: 'test',
port: 8080
}
const method = {}
const params = {
// url: 'https://httpstat.us/500'
// url: 'https://httpstat.us/400'
// url: 'https://httpstat.us/200'
}
rpc.fetch(account, method, params)
.then(res => console.log('got result', res))
.catch(err => console.error('gor error', err))