Changeset 8ca35dc for my-react-app/src/components/RestaurantDetails.js
- Timestamp:
- 01/19/25 23:18:37 (4 months ago)
- Branches:
- main
- Children:
- f5b256e
- Parents:
- db39d9e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
my-react-app/src/components/RestaurantDetails.js
rdb39d9e r8ca35dc 21 21 try { 22 22 if (!id) return; 23 const response = await axios.get(`http://localhost:808 0/api/restaurants/${id}`);23 const response = await axios.get(`http://localhost:8081/api/restaurants/${id}`); 24 24 setRestaurant(response.data); 25 25 } catch (error) { … … 36 36 const fetchTableDetails = async () => { 37 37 try { 38 const response = await axios.get(`http://localhost:808 0/api/tables/${selectedTableId}`);38 const response = await axios.get(`http://localhost:8081/api/tables/${selectedTableId}`); 39 39 setSelectedTable(response.data); 40 40 } catch (error) {
Note:
See TracChangeset
for help on using the changeset viewer.