You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey yes this makes sense to me, there should be a helper method getMiddleware that retrieves all the middleware it can gather, whether it comes from the routes, controllers, etc.. A pr would be appreciated, let me know if you need help with implementation or tests
Hey yes this makes sense to me, there should be a helper method getMiddleware that retrieves all the middleware it can gather, whether it comes from the routes, controllers, etc.. A pr would be appreciated, let me know if you need help with implementation or tests
Description:
Hello,
Right now, the Generator checks if a specific route has a Passport middleware on the route definition only.
https://github.com/mtrajano/laravel-swagger/blob/master/src/Generator.php#L173
Middlewares can also be defined on the Controllers. I think that the Generator should also scan them to get additionally defined middlewares.
Example:
If you agree I can work on a PR that adds this functionality.
Thank you,
The text was updated successfully, but these errors were encountered: