working on economy graph

This commit is contained in:
cnachtigall1991
2021-10-19 07:24:16 +02:00
parent 5f96a72e76
commit 482008c77b
8 changed files with 152 additions and 10 deletions

View File

@@ -54,3 +54,15 @@ export const TrackMe = async (id64, authcode, sharecode) => {
return [status, statusError]
}
export const getPlayerValue = async (match_id) => {
try {
const res = await axios.get(`${API_URL}/match/${match_id}/rounds`)
if (res.status === 200) {
return res.data
}
} catch (err) {
console.log(err.response.status, err.response.statusText)
}
}