Add Axios to handle requests + base configuration
This commit is contained in:
10
src/http-common.js
Normal file
10
src/http-common.js
Normal 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',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user