HAT-Here-And-There / here-and-there-frontend

This is here and there project frontend repository of 한이음 ict
0 stars 0 forks source link

Feat : bookmark UI를 백엔드 api 활용하여 저장 및 삭제가 가능하게 구현 #28

Closed shroqkf closed 2 months ago

shroqkf commented 2 months ago
  1. fetchSavedPlaces 함수에서 서버로부터 저장된 장소 목록을 받아오고, 각 장소의 id를 문자열로 저장합니다.
  2. handleSavePlace 함수에서 fetch 함수를 사용하여 서버에 저장 및 삭제 요청을 보내고, 서버의 응답에 따라 상태를 업데이트합니다.

제가 백엔드 연결은 처음이라 많이 부족한데 피드백 주시면 반영해서 고쳐나가겠습니다 🥹