Closed yokovaski closed 7 years ago
Ah, I overlooked this merge because the latest release is from February. Thanks for the answer!
I added "dusterio/lumen-passport": "dev-master",
to my composer.json and Dusterio\LumenPassport\LumenPassport::routes($app, [ 'prefix' => 'api/v1/protected', 'middleware' => 'reject', ]);
at the end of my bootstrap/app.php.
It works perfectly now!
Should be a new release soon? @dusterio
Hi,
I want to add middleware to the routes defined in PassportServiceProvider. I have tried to override the routes in /routes/web.php:
$app->post('/oauth/token', [ 'middleware' => 'reject', 'uses' => '\Dusterio\LumenPassport\Http\Controllers\AccessTokenController@issueToken', ]);
This is throwing a 500 at me without a error message. I am currently clueless about what is going wrong.I do not know if it is at all possible to add middleware to package defined routes and can't find any good solutions to my problem. Who is able to help me? :)