ccashfrontend/helpers/functions.js
2021-06-16 19:31:41 +10:00

13 lines
327 B
JavaScript

const { CCashClient } = require("ccash-client-js");
async function postUser(name, password) {
const client = new CCashClient(process.env.BANKAPIURL);
console.log(process.env.BANKAPIURL);
try {
return await client.addUser(name, password);
} catch (err) {
console.log(err);
}
}
module.exports = { postUser };