From ba4695acb07390f09f5a035cec372e3798d3df98 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 25 Sep 2024 13:45:37 +0530 Subject: [PATCH] fix: login api route --- src/pages/Login.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));