diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx index 9c7c966b..47452d17 100644 --- a/src/pages/Login.tsx +++ b/src/pages/Login.tsx @@ -40,7 +40,7 @@ const Login = () => { e.preventDefault(); setLoading(true); try { - const { data } = await axios.post(`/api/login`, { email, password }); + const { data } = await axios.post(`http://localhost:8080/auth/login`, { email, password }); dispatch({ type: 'LOGIN', payload: data }); notify('success', 'Welcome to Maxun!'); window.localStorage.setItem('user', JSON.stringify(data));