UNPKG

efx-api-node

Version:

<img src="https://avatars3.githubusercontent.com/u/33315316?s=200&v=4" align="right" />

12 lines (7 loc) 264 B
const { post } = require('request-promise') module.exports = async (efx) => { const url = efx.config.api + '/r/get/conf' const exchangeConf = await post(url, { json: {} }) efx.config = Object.assign({}, efx.config, exchangeConf) return exchangeConf };