Skip to content

Commit

Permalink
Merge pull request #238 from TripInfoWeb/dev_informations
Browse files Browse the repository at this point in the history
Fix: 정보 북마크 취소 API 연동 오류 수정
  • Loading branch information
HyunJinNo authored Aug 29, 2024
2 parents 9a7a513 + 019c1bf commit c8d0c98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/api/bookmark/information/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function DELETE(request: NextRequest) {
const body = await request.formData();

const data = new URLSearchParams();
data.append("infoId", body.get("info")?.toString() ?? "0");
data.append("infoId", body.get("infoId")?.toString() ?? "0");

const response = await fetch(
`${process.env.BACKEND_URL}/api/bookmark/information`,
Expand Down
2 changes: 1 addition & 1 deletion src/containers/common/InformationItemContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const InformationItemContainer = ({
data.append("infoId", informationId.toString());

if (isBookMarked) {
const response = await fetch("api/bookmark/information", {
const response = await fetch("/api/bookmark/information", {
method: "DELETE",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
Expand Down

0 comments on commit c8d0c98

Please sign in to comment.