diff --git a/project/client/src/pages/Main/MainPage.js b/project/client/src/pages/Main/MainPage.js index c14502f3..255e75bc 100644 --- a/project/client/src/pages/Main/MainPage.js +++ b/project/client/src/pages/Main/MainPage.js @@ -34,7 +34,7 @@ function MainPage({ isLoggedIn, setIsLoggedIn }) { useEffect(() => { - fetch('http://207.154.242.6:8020/recently-release-films/', { + fetch('http://localhost:8020/recently-release-films/', { method: 'POST', headers: { 'Content-Type': 'application/json', diff --git a/project/client/src/pages/Main/components/NavBar.js b/project/client/src/pages/Main/components/NavBar.js index bc8d6f6f..3d56d7e3 100644 --- a/project/client/src/pages/Main/components/NavBar.js +++ b/project/client/src/pages/Main/components/NavBar.js @@ -29,7 +29,7 @@ function NavBar({ isLoggedIn, setIsLoggedIn }) { const handleSearch = (event) => { event.preventDefault(); if (!searchTerm.trim()) return; - fetch('http://207.154.242.6:8020/query-film-pattern/', { + fetch('http://localhost:8020/query-film-pattern/', { method: 'POST', headers: { 'Content-Type': 'application/json', diff --git a/project/client/src/pages/SignUp/Login.js b/project/client/src/pages/SignUp/Login.js index 3081943c..c3083995 100644 --- a/project/client/src/pages/SignUp/Login.js +++ b/project/client/src/pages/SignUp/Login.js @@ -13,10 +13,10 @@ function Login({ setIsLoggedIn }) { event.preventDefault(); // Handle the login logic here, typically sending a request to backend console.log('Logging in', { username, password }); - // send a request to backend (http://207.154.242.6:8020/docs/) to login + // send a request to backend (http://localhost:8020/docs/) to login // if login is successful, redirect to main page - fetch('http://207.154.242.6:8020/login/', { + fetch('http://localhost:8020/login/', { method: 'POST', headers: { 'Content-Type': 'application/json', diff --git a/project/client/src/pages/SignUp/SignUp.js b/project/client/src/pages/SignUp/SignUp.js index 380a0ee4..1c1bd2e3 100644 --- a/project/client/src/pages/SignUp/SignUp.js +++ b/project/client/src/pages/SignUp/SignUp.js @@ -13,7 +13,7 @@ function SignUp() { // Handle the form submission logic here. // This would typically involve sending a request to your backend. console.log('Signing in', { email, username, password }); - fetch('http://207.154.242.6:8020/register/', { + fetch('http://localhost:8020/register/', { method: 'POST', headers: { 'Content-Type': 'application/json',