2023-04-13 13:45:03 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2023-08-27 15:26:06 +02:00
|
|
|
use CodeIgniter\Router\RouteCollection;
|
|
|
|
|
2023-04-13 13:45:03 +02:00
|
|
|
/**
|
|
|
|
* @copyright 2023 Ad Aures
|
|
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
|
|
* @link https://castopod.org/
|
|
|
|
*/
|
|
|
|
|
2023-08-27 15:26:06 +02:00
|
|
|
/** @var RouteCollection $routes */
|
2023-04-13 13:45:03 +02:00
|
|
|
|
|
|
|
$routes->get('static/(:any)', 'MediaController::serve/$1', [
|
2023-06-12 16:47:38 +02:00
|
|
|
'as' => 'media-serve',
|
2023-04-13 13:45:03 +02:00
|
|
|
'namespace' => 'Modules\Media\Controllers',
|
2023-07-19 17:04:17 +02:00
|
|
|
'filter' => 'allow-cors',
|
2023-04-13 13:45:03 +02:00
|
|
|
]);
|