From bbb318ae60677d86c1df3e03be2b603245448aeb Mon Sep 17 00:00:00 2001 From: 8YBY8 <156168881+8YBY8@users.noreply.github.com> Date: Tue, 16 Jul 2024 15:54:55 +0800 Subject: [PATCH] Update movie.js --- frontend/movie.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/movie.js b/frontend/movie.js index 0db7f75..eb0a836 100644 --- a/frontend/movie.js +++ b/frontend/movie.js @@ -5,7 +5,8 @@ const movieTitle = url.searchParams.get("title") // input the API // doc: https://developer.themoviedb.org/docs/append-to-response // const APILINK = 'http://127.0.0.1:5500/backend/api/v1/reviews/'; -const APILINK = '../backend/api/v1/reviews/'; +// const APILINK = '../backend/api/v1/reviews/'; +const APILINK = 'http://localhost:5000/api/v1/reviews/'; const main = document.getElementById("section"); @@ -121,4 +122,4 @@ function deleteReview(id) { console.log(res) location.reload(); }); -} \ No newline at end of file +}