diff --git a/src/components/submitLogin.jsx b/src/components/submitLogin.jsx index 532e8fd4964a48a079f9c633e4fd63ab26c92e29..a0d4b301391422dafb9ebc76ead74051c9ccbaae 100644 --- a/src/components/submitLogin.jsx +++ b/src/components/submitLogin.jsx @@ -55,7 +55,7 @@ const SubmitLogin = () => { // TODO: jump to a new page // To creat a new POST request to get the login by the axios. axios - .post("/user/login", { + .post("/api/user/login", { phone_number: values.phoneNumber, calibration_code: values.calibrationCode, }) @@ -80,7 +80,7 @@ const SubmitLogin = () => { } else { // To creat a new POST request to get the Calibration Code by the axios. axios - .post("http://127.0.0.1:5500/user/getCode", { + .post("http://127.0.0.1:5500/api/user/getCode", { phone_number: values.phoneNumber, }) .then(function (response) {