19 lines
358 B
JavaScript
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
|
|
}
|