mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-02 14:29:11 +02:00
fix(media): add missing HEAD route for static assets served with S3
This commit is contained in:
parent
cc85637e18
commit
b61a32c8a9
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue