error and loading

This commit is contained in:
2024-04-30 07:38:59 -04:00
parent 2c1d6a9578
commit 78b9432722
8 changed files with 261 additions and 63 deletions

View File

@ -4,7 +4,8 @@ const client = axios.create({
baseURL: 'https://api.outsidein.dev/Sy0NsAyaS8uuURS1zyCDp3Fzxcpg25iw',
});
const api = {
async loadRestaurants(){
async loadRestaurants()
{
const response = await client.get('/restaurants');
return response.data;
},