From fcf4a43a62f94da30fd023050e0ca3129be8e02d Mon Sep 17 00:00:00 2001 From: devfake Date: Mon, 10 Oct 2016 15:18:57 +0200 Subject: [PATCH] patch userdata --- backend/routes/web.php | 2 +- client/app/components/Content/Settings.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/routes/web.php b/backend/routes/web.php index cb4a60e..774b93b 100644 --- a/backend/routes/web.php +++ b/backend/routes/web.php @@ -12,7 +12,7 @@ Route::group(['middleware' => 'auth'], function() { Route::get('/get-userdata', 'UserController@userData'); - Route::post('/change-userdata', 'UserController@changeUserData'); + Route::patch('/change-userdata', 'UserController@changeUserData'); Route::get('/search-tmdb', 'TMDBController@search'); Route::post('/add', 'ItemController@add'); diff --git a/client/app/components/Content/Settings.vue b/client/app/components/Content/Settings.vue index 3763088..82525cf 100644 --- a/client/app/components/Content/Settings.vue +++ b/client/app/components/Content/Settings.vue @@ -56,7 +56,7 @@ const password = this.password; if(username != '') { - this.$http.post(`${config.api}/change-userdata`, {username, password}).then(value => { + this.$http.patch(`${config.api}/change-userdata`, {username, password}).then(value => { this.success = true; this.clearSuccessMessage(); });