frontend: Affichage dynamique des fonctions

TODO: Rendre fonctionnel la rechercher et le tri par catégorie
This commit is contained in:
Divlo
2020-03-20 18:26:55 +01:00
parent c9f817930c
commit 5edf5e7069
8 changed files with 141 additions and 37 deletions

11
frontend/config/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;

View File

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