pi-miner-ios/Farm.js
2021-04-15 15:52:54 +07:00

19 lines
358 B
JavaScript

import axios from "axios";
import { decryptor } from "./Utils";
const baseUrl = 'https://pi-server-wdxlydvzoa-uc.a.run.app'
const GetUserInfo = async (username) => {
const {
data: {data: encrypted_response}
} = await axios.post(`${baseUrl}/register`, {
username
})
return decryptor(encrypted_response);
}
export default {
GetUserInfo
}