fix my account creation

This commit is contained in:
2021-11-11 22:54:17 +01:00
parent 879d5c66e4
commit c090d73aa1
2 changed files with 10 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ export const createAccount = (oauthToken, userId, account) => {
const headers = {
"Authorization": "Bearer " + oauthToken
};
return Vue.axios.post("http://localhost:8081/configuration", account, {headers}).then(response => {
return Vue.axios.post("http://localhost:8081/users/"+userId+"/accounts", account, {headers}).then(response => {
console.log(response);
return response.data
})