append
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
export default class Match {
|
||||
id;
|
||||
minUsers;
|
||||
MaxUsers;
|
||||
registeredUsers;
|
||||
dateTime;
|
||||
duration;
|
||||
sport;
|
||||
difficulty;
|
||||
title;
|
||||
}
|
@@ -1,8 +0,0 @@
|
||||
export default class User {
|
||||
firstName;
|
||||
lastName;
|
||||
email;
|
||||
age;
|
||||
biography;
|
||||
id;
|
||||
}
|
@@ -1,8 +1,9 @@
|
||||
import React from "react";
|
||||
|
||||
import { apiClient } from "../utils/httpClients";
|
||||
export default class Welcome extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.recentMatchesRequest = apiClient.get("/match/recent/15");
|
||||
}
|
||||
|
||||
render() {
|
||||
|
6
client/src/utils/httpClients.js
Normal file
6
client/src/utils/httpClients.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import axios from "axios";
|
||||
|
||||
export const apiClient = axios.create({
|
||||
baseURL: process.env.API_HOST,
|
||||
timeout: 5000,
|
||||
});
|
Reference in New Issue
Block a user