diff --git a/public_html/js/Presenters/PostEditPresenter.js b/public_html/js/Presenters/PostEditPresenter.js index fb5d0cca..aaeba32f 100644 --- a/public_html/js/Presenters/PostEditPresenter.js +++ b/public_html/js/Presenters/PostEditPresenter.js @@ -131,7 +131,7 @@ App.Presenters.PostEditPresenter = function( return; } - promise.wait(api.put('/posts/' + post.id, formData)) + promise.wait(api.post('/posts/' + post.id, formData)) .then(function(response) { tagList.refreshTags(); if (typeof(updateCallback) !== 'undefined') { diff --git a/public_html/js/Presenters/UserAccountSettingsPresenter.js b/public_html/js/Presenters/UserAccountSettingsPresenter.js index c488769c..50236d46 100644 --- a/public_html/js/Presenters/UserAccountSettingsPresenter.js +++ b/public_html/js/Presenters/UserAccountSettingsPresenter.js @@ -123,7 +123,7 @@ App.Presenters.UserAccountSettingsPresenter = function( delete formData.passwordConfirmation; } - promise.wait(api.put('/users/' + user.name, formData)) + promise.wait(api.post('/users/' + user.name, formData)) .then(function(response) { editSuccess(response); }).fail(function(response) { diff --git a/src/Routes/Posts/UpdatePost.php b/src/Routes/Posts/UpdatePost.php index 6514f387..c5c20c22 100644 --- a/src/Routes/Posts/UpdatePost.php +++ b/src/Routes/Posts/UpdatePost.php @@ -28,7 +28,7 @@ class UpdatePost extends AbstractPostRoute public function getMethods() { - return ['PUT']; + return ['POST']; } public function getUrl() diff --git a/src/Routes/Users/UpdateUser.php b/src/Routes/Users/UpdateUser.php index dfa8828e..872e4954 100644 --- a/src/Routes/Users/UpdateUser.php +++ b/src/Routes/Users/UpdateUser.php @@ -28,7 +28,7 @@ class UpdateUser extends AbstractUserRoute public function getMethods() { - return ['PUT']; + return ['POST']; } public function getUrl()