RollingPaperTeam / rolling-papaer-web

Apache License 2.0
1 stars 1 forks source link

Last dance 이나경 156 message 삭제 기능 구현 #157

Closed nakyoung98 closed 6 months ago

nakyoung98 commented 6 months ago

이 PR은 어떤 유형인가요?

설명

Delete Message Api 구현

export async function deleteRecipientMessage( id){
  const apiPath = `${ROUTES.MESSAGES}/${id}/`;
  try {
    const response = await fetch(apiPath,{
      method:"DELETE",
    });
    if (!response.ok) {
      throw new Error(
        "리스폰스 데이터를 삭제하는 데 실패 하였습니다.",
        response.statusText
      );
    }
  } catch (e) {
    console.log(e);
    throw e;
  }
}

삭제 핸들러 구현

image image image

관련 티켓 및 문서

스크린샷, 녹화

UI 접근성 체크리스트

UI 변경 사항이 있는 경우, 이 체크리스트를 활용하세요:

[선택사항] 이 PR을 가장 잘 설명하는 GIF는 무엇인가요?