I am trying to make a PUT request in my api to update a model, but the auth:api wont work.
My route looks like:
Route::group(['prefix' => 'api/v1', 'middleware' => ['api', 'auth:api']], function () {
Route::put('user', 'ApiUserController@updateUserMail');
});
If I now send a PUT request to app.dev/api/v1/user using postman I get a:
404 NotFoundHttpException in RouteCollection.php line 161
But if I remove auth:api from my middleware and run the request again I will enter the controller.
No idea whats wrong.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire