From 34fd427345d80839b47e9439504299396b65c745 Mon Sep 17 00:00:00 2001 From: NEWJIN Date: Wed, 29 Nov 2023 23:00:53 +0900 Subject: [PATCH] mod: charinfo review char dropbox ... Co-Authored-By: Seohyun <102886338+betterb2etr@users.noreply.github.com> --- charinfo.html | 42 ++++++++++++++++++++++++++++++++++++++++-- charinfo.js | 4 ++-- 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/charinfo.html b/charinfo.html index 70cbfde..4441d57 100644 --- a/charinfo.html +++ b/charinfo.html @@ -25,14 +25,52 @@ -
-
+

diff --git a/charinfo.js b/charinfo.js index a705369..7042c3d 100644 --- a/charinfo.js +++ b/charinfo.js @@ -132,9 +132,9 @@ function deleteReviewFunction(reviewId) { function deleteReview(reviewId) { var xhr4 = new XMLHttpRequest(); - var url = "http://34.127.90.191:3000/character/review?number=${review.number}"; + var url = "http://34.127.90.191:3000/character/review"; - xhr4.open("DELETE", url + "?reviewId=" + reviewId, true); + xhr4.open("DELETE", url + "?number" + reviewId, true); xhr4.onreadystatechange = function () { if (xhr4.readyState == 4) {