1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 06:32:34 +01:00

patch userdata

This commit is contained in:
devfake 2016-10-10 15:18:57 +02:00
parent c621d2d2e7
commit fcf4a43a62
2 changed files with 2 additions and 2 deletions

View File

@ -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');

View File

@ -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();
});