I don’t know why, but I continue to receive 404 when I call my endpoints on postman
my routes:
Route::get('getlist', 'AppHttpControllersApiController@getList');
Route::post('login', 'AppHttpControllersAuthController@login');
Route::post('/register','AppHttpControllersAuthController@register');
I don’t know if it’s relevant but I’ve done changes in my auth.php also
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'guards' => [
'api' => [
'driver' => 'jwt',
'provider' => 'users',
],
],
],
Obviously I’ve started my application with php artisan serve
2
Answers
Call endpoint from postman like this:
If you have any prefix like v1 etc:
some problem may fixed by this command
and try to check your route list with
and make sure your route has shown