0👍
✅
Your URL contains two .json
extensions, which won’t work. You should only add .json
after the full path of the JSON you are trying to write/update:
this.$axios
.$put(
"https://XXXX.com/posts/" +
editedPost.id +
".json?auth=" +
vuexContext.state.token,
editedPost
)
Source:stackexchange.com