const got = require('got'); async function postUser(name, password){ console.log(process.env.BANKAPIURL) try{ const {body} = await got.post(process.env.BANKAPIURL+'BankF/user',{ json:{ name: name, init_pass: password }, responseType:'json' }) return body } catch(err){ console.log(err) } } module.exports = { postUser }