Add option to disable _minify route in configuration file
It will be possible to add a parameter in the configuration to deactivate the route `/_minify/{file?}`.
Something like this:
```php
public function registerRoutes()
{
if(!config('minify.route-enabled', true)) {
return;
}
RouteFacade::get('/_minify/{file?}', HttpConnectionHandler::class)
->where('file', '(.*)')
->name('minify.assets');
}
```
I'm using this to minify the blade and that route is something I don't use, to minify the css and js files I already use vite.
Therefore, I don't like having a route exposed that will never be used.
关闭于 2025-02-23 2 条评论