mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-17 07:12:12 +11:00
26 lines
401 B
JavaScript
26 lines
401 B
JavaScript
const got = require('got');
|
|
|
|
|
|
|
|
async function postUser(name, password){
|
|
try{
|
|
const {body} = await got.post('https://ccash.ryzerth.com/BankF/user',{
|
|
json:{
|
|
name: name,
|
|
init_pass: password
|
|
},
|
|
responseType:'json'
|
|
|
|
})
|
|
return body
|
|
} catch(err){
|
|
console.log(err)
|
|
}
|
|
|
|
console.log(body)
|
|
return body.value
|
|
}
|
|
|
|
|
|
|
|
module.exports = { postUser }
|