From 511d0f0cb7168336b9d88de0f55aada239a65149 Mon Sep 17 00:00:00 2001 From: gaeon <rkdjs1104@ajou.ac.kr> Date: Sun, 10 Dec 2023 02:10:01 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20channel=20delete=20=EA=B8=B0=EB=8A=A5?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/channel/existingChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/channel/existingChannel.js b/src/components/channel/existingChannel.js index 98fc8dc..f9f7d5a 100644 --- a/src/components/channel/existingChannel.js +++ b/src/components/channel/existingChannel.js @@ -46,7 +46,7 @@ const ExistingChannel=({isOpen, onClose, data})=>{ const handleDeleteChannel = async () => { try { - const response = await fetch(`api/channels/${userData.userId}`, { + const response = await fetch(`api/channels/`, { method: 'DELETE', headers: { 'Content-Type': 'application/json', -- GitLab