new feature "Explore Site"

This commit is contained in:
2021-11-15 19:27:10 +01:00
parent e169d4d80b
commit 2fc87ab4d8
9 changed files with 543 additions and 425 deletions

View File

@@ -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 {