mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-16 23:02:13 +11:00
13 lines
327 B
JavaScript
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 };
|