forked from CSGOWTF/csgowtf
#5 added Hitgroup-Puppet to DamageSite
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user