samedi 6 avril 2019

Laravel, two api PUT actions, one works other doesn't

I send API PUT request from javascript, in one case it works, in another it doesn't.

Request URL: http://project.local/api/contestant
Request Method: PUT
404

Request URL: http://project.local/api/user
Request Method: PUT
200

Route::put('contestant', 'ApiContestantController@store');
Route::put('user', 'ApiUserController@store');

I checked routes/api.php few times, javascript code is similar, and don't know what should I check next.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire