Ignore:
Timestamp:
01/19/25 23:18:37 (4 months ago)
Author:
Aleksandar Panovski <apano77@…>
Branches:
main
Children:
f5b256e
Parents:
db39d9e
Message:

Done with stupid timeslots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • my-react-app/src/components/RestaurantContext.js

    rdb39d9e r8ca35dc  
    1010        const fetchRestaurants = async () => {
    1111            try {
    12                 const response = await axios.get('http://localhost:8080/api/restaurants');
     12                const response = await axios.get('http://localhost:8081/api/restaurants');
    1313                setRestaurants(response.data);
    1414            } catch (error) {
     
    1717        };
    1818
    19         fetchRestaurants();
     19        fetchRestaurants().then(r => console.log(fetchRestaurants()));
    2020    }, []);
    2121
Note: See TracChangeset for help on using the changeset viewer.