forked from CSGOWTF/csgowtf
new feature "Explore Site"
This commit is contained in:
@@ -2,6 +2,17 @@ import axios from "axios";
|
||||
|
||||
const API_URL = process.env.VUE_APP_API_URL
|
||||
|
||||
export const GetMatches = async () => {
|
||||
try {
|
||||
const res = await axios.get(`${API_URL}/matches`)
|
||||
|
||||
if (res.status === 200)
|
||||
return res.data
|
||||
} catch (err) {
|
||||
// TODO: Error handling
|
||||
console.log(err.response.status, err.response.statusText)
|
||||
}
|
||||
}
|
||||
|
||||
export const GetUser = async (id) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user