Skip to content
Snippets Groups Projects
Commit dd37579f authored by Torbjørn Antonsen's avatar Torbjørn Antonsen
Browse files

Merge branch '27-update-frontend-post-to-puts-where-applicable' into 'master'

Resolve "Update frontend post to puts where applicable"

Closes #27

See merge request !41
parents a0fbd856 8da3b91d
No related branches found
No related tags found
1 merge request!41Resolve "Update frontend post to puts where applicable"
Pipeline #279179 passed
......@@ -162,7 +162,7 @@ export const updateUserInfo = async (
'email': email,
'profilePictureBase64': profilePictureBase64
};
return await axios.post('http://localhost:8080/users/update',data,config);
return await axios.put('http://localhost:8080/users/update',data,config);
} catch (error){
console.error(error)
throw error;
......@@ -184,7 +184,7 @@ export const updatePasswordInfo = async (
'password': currentPassword,
'newPassword': newPassword
};
return await axios.post('http://localhost:8080/userCredentials/updatePassword',data,config);
return await axios.put('http://localhost:8080/userCredentials/updatePassword',data,config);
} catch (error){
console.error(error)
throw error;
......@@ -205,7 +205,7 @@ export const updateBankAccountInfo = async (
'currentAccount': checkingAccount,
'savingAccount': savingAccount
};
return await axios.post('http://localhost:8080/users/update',data,config);
return await axios.put('http://localhost:8080/users/update',data,config);
} catch (error){
console.error(error)
throw error;
......@@ -229,7 +229,7 @@ export const updateIncomeInfo = async (
'monthlyFixedExpenses': monthlyFixedExpenses,
'monthlySavings': monthlySavings
};
return await axios.post('http://localhost:8080/users/update',data,config);
return await axios.put('http://localhost:8080/users/update',data,config);
} catch (error){
console.error(error)
throw error;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment