Help with API after deploying app

Site Name. effortless-marshmallow-751456

After deploying the app, I was trying to Login however I get a 404 when my axios call tries to post data. This functions well on my local deployment. The server and the client are both present in the deployment. Any ideas where the issue might be?

My server.js is as follows:
const API_URL = ‘/api/users/’;

// Login user
const login = async ( userData ) => {
let response;
try {
response = await axios.post(API_URL+‘login’, userData);
} catch (err) {
if (err.response) {
console.log(err.response.data);
console.log(err.response.status);
console.log(err.response.headers);
} else if (err.request) {
console.log(‘The client never received a response, and the request was never left’);
console.log(err.request);
} else {
console.log(err);
}
}

if ( response.data ) {
	localStorage.setItem( 'user', JSON.stringify( response.data ) );
}
console.log(response);
return response.data;

};

Hiya @jeetrex, welcome to the forums! :wave:t6: We’re glad you’re here. I checked your most recent deploy and I am not seeing this issue. Are you still experiencing this issue? Please let us know so we can look into this further. :smiling_face_with_three_hearts:

If so please have a read at this support guide which may help you get back on track.