Add Axios to handle requests + base configuration

This commit is contained in:
2020-08-18 17:43:15 +02:00
parent 93e2e330b2
commit 0f6d5a2005
3 changed files with 50 additions and 6 deletions

10
src/http-common.js Normal file
View File

@@ -0,0 +1,10 @@
import axios from 'axios';
export const API_URL = 'https://meeting-planner-backend.herokuapp.com';
export const my_app = axios.create({
baseURL: API_URL,
headers: {
'Content-type': 'application/json',
},
});