laravel-openapi
laravel-openapi copied to clipboard
No way to add Laravel prebuild controllers
When the Laravel\Sanctum\Http\Controllers\CsrfCookieController is used, there is no way to add it path into schema.
Route list ignore this Controller, because it not contains #[OpenApi\PathItem] and #[OpenApi\Operation] attributes, but I can't add them there, because it is a part of third-party package.
I have to make my own extension of that controller, also part of code, that automagicaly register them to route and so one...
It will be useful to have a possibility to setup this attributes also externally in the openapi.php config file.