const basicApi = '/ycsletrx' const header = { 'Content-Type': 'application/x-www-form-urlencoded', } async function fetchUserInfo() { try { const response = await axios.post(basicApi + '/getUser', {}, { headers: header }) return response.data } catch (e) { console.log(e) return false } }