There is no command called api:routes in Laravel. maybe the command is offered by a third party package.
Jan 31, 2020
9
Level 2
question about: php artisan api:routes
I'm very curious about: when I do: php artisan api:routes
The column Protected Shows always No, but my routes are protected using JWT and working great!
Why I don't see some routes in the example bellow like Protected?
My api routes
$api = app('Dingo\Api\Routing\Router');
$api->version('v1', function ($api) {
$api->group(['prefix' => 'auth', 'namespace' => 'App\Http\Controllers\Api\Auth'], function ($api) {
$api->post('login', 'AuthController@login');
$api->post('forgot-password', 'ForgotPasswordController@getResetToken');
$api->post('reset-password', 'ResetPasswordController@reset');
$api->group(['middleware' => 'jwt.auth'], function ($api) {
$api->post('logout', 'AuthController@logout');
$api->post('refresh', 'AuthController@refresh');
$api->post('me', 'AuthController@me');
});
});
});
Please or to participate in this conversation.