mardi 4 avril 2017

Vue.js PATCH method not allowed

Hi everyone POST and GET methods are working on my application, but PATCH method don't. On my WAMP server everything works fine. On VPS server - don't. I get 405 Method not allowed.

I am using: Laravel 5.4, Vue.js 2.

Patch method:

axios.patch('/profile/' + this.profile.id + '/update', this.overview)
.then(resp => {
    this.successDataSave(resp.data)
})

Route:

Route::patch('/profile/{profile}/update', 'AppController@update');



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire