Skip to content

Commit

Permalink
localhost fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Dannysht committed Jun 23, 2024
1 parent 236e1ee commit 300b87e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/Components/Common/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const Map = ({onCoordinatesChange}) => {

const fetchData = async () => {
setPlaygrounds([{id:1, name: "bla, bla", ageGroup: "three_to_six", coordinates: {lat: 41.6338, lng: 25.3777}}, {id:2, name: "bla, bla2", ageGroup: "three_to_six", coordinates: {lat: 41.6368, lng: 25.3777}}])
// const receivedItems = await fetch("http://kidsground.bg:8009/v1/playgrounds/all")
const receivedItems = await fetch("http://localhost:8009/v1/playgrounds/all")
// const receivedItemsJSON = await receivedItems.json()
// setPlaygrounds(receivedItemsJSON)
}
Expand Down

0 comments on commit 300b87e

Please sign in to comment.