Skip to content

Commit

Permalink
fix: change url from server to localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
Halil-Ibrahim-Kasapoglu committed Apr 30, 2024
1 parent 99e2f25 commit 29c4509
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion project/client/src/pages/Main/MainPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion project/client/src/pages/Main/components/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions project/client/src/pages/SignUp/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion project/client/src/pages/SignUp/SignUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 29c4509

Please sign in to comment.