added dapnet support
This commit is contained in:
parent
a96b537f8c
commit
db5a646826
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
const Connector = require("./Connector")
|
||||
const config = require('../../config.json')
|
||||
const axios = require('axois')
|
||||
const axios = require('axios')
|
||||
const e = require("express")
|
||||
|
||||
class DAPNETConnector extends Connector {
|
||||
constructor (amqpConnMngr) {
|
||||
|
@ -25,6 +26,7 @@ class DAPNETConnector extends Connector {
|
|||
password: config.connectors.dapnet.password
|
||||
}
|
||||
}
|
||||
console.log(config.connectors.dapnet.endpoint, dapnetRequest, extraParameters)
|
||||
return axios.post(config.connectors.dapnet.endpoint, dapnetRequest, extraParameters)
|
||||
.then(() => {
|
||||
this.connectorRegistry.reportState(msg, UUID, 'routed')
|
||||
|
|
Loading…
Add table
Reference in a new issue