Skip to content
Snippets Groups Projects
Commit ca6218e5 authored by Yassine Doghri's avatar Yassine Doghri Committed by Ewen Korr
Browse files

fix(media): add missing HEAD route for static assets served with S3

parent 0b9bfda8
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment