frontend: FunctionTabs en plusieurs components

This commit is contained in:
Divlo
2020-03-24 09:54:50 +01:00
parent 53330095be
commit b479e1501f
12 changed files with 114 additions and 84 deletions

11
website/utils/api.js Normal file
View File

@ -0,0 +1,11 @@
import axios from 'axios';
import { API_URL } from './config';
const api = axios.create({
baseURL: API_URL,
headers: {
'Content-Type': 'application/json'
}
});
export default api;

1
website/utils/config.js Normal file
View File

@ -0,0 +1 @@
export const API_URL = "http://localhost:8080";