fix(media): add missing HEAD route for static assets served with S3
This commit is contained in:
parent
cc85637e18
commit
b61a32c8a9
|
@ -12,6 +12,11 @@ use CodeIgniter\Router\RouteCollection;
|
|||
|
||||
/** @var RouteCollection $routes */
|
||||
|
||||
$routes->head('static/(:any)', 'MediaController::serve/$1', [
|
||||
'as' => 'media-serve',
|
||||
'namespace' => 'Modules\Media\Controllers',
|
||||
'filter' => 'allow-cors',
|
||||
]);
|
||||
$routes->get('static/(:any)', 'MediaController::serve/$1', [
|
||||
'as' => 'media-serve',
|
||||
'namespace' => 'Modules\Media\Controllers',
|
||||
|
|
Loading…
Reference in New Issue