#5 added Hitgroup-Puppet to DamageSite

This commit is contained in:
2021-11-06 01:44:39 +01:00
committed by Giovanni Harting
parent ed6c6e799a
commit f401bcf879
16 changed files with 589 additions and 78 deletions

View File

@@ -55,7 +55,7 @@ export const TrackMe = async (id64, authcode, sharecode = '') => {
return [status, statusError]
}
export const getPlayerValue = async (match_id) => {
export const GetPlayerValue = async (match_id) => {
try {
const res = await axios.get(`${API_URL}/match/${match_id}/rounds`)
@@ -67,7 +67,7 @@ export const getPlayerValue = async (match_id) => {
}
}
export const getMatchDetails = async (match_id) => {
export const GetMatchDetails = async (match_id) => {
try {
const res = await axios.get(`${API_URL}/match/${match_id}`)
@@ -80,7 +80,7 @@ export const getMatchDetails = async (match_id) => {
}
}
export const loadMoreMatches = async (player_id, date) => {
export const LoadMoreMatches = async (player_id, date) => {
try {
const res = await axios.get(`${API_URL}/player/${player_id}/next/${date}`)
@@ -93,7 +93,7 @@ export const loadMoreMatches = async (player_id, date) => {
}
}
export const getPlayerMeta = async (player_id, limit = 4) => {
export const GetPlayerMeta = async (player_id, limit = 4) => {
try {
const res = await axios.get(`${API_URL}/player/${player_id}/meta/${limit}`)
@@ -105,3 +105,16 @@ export const getPlayerMeta = async (player_id, limit = 4) => {
console.log(err.response.status, err.response.statusText)
}
}
export const GetWeaponDmg = async (match_id) => {
try {
const res = await axios.get(`${API_URL}/match/${match_id}/weapons`)
if (res.status === 200) {
return res.data
}
} catch (e) {
// TODO: 400, 404
console.log(e)
}
}