e2e test passing

This commit is contained in:
2024-04-24 16:05:19 -04:00
parent 5db0d0afc1
commit e390640938
7 changed files with 95 additions and 4 deletions

13
src/api.js Normal file
View File

@ -0,0 +1,13 @@
import axios from 'axios';
const client = axios.create({
baseURL: 'https://api.outsidein.dev/Sy0NsAyaS8uuURS1zyCDp3Fzxcpg25iw',
});
const api = {
async loadRestaurants(){
const response = await client.get('/restaurants');
return response.data;
},
};
export default api;