2022-06-22 10:48:58 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Modules\Api\Rest\V1\Config;
|
|
|
|
|
|
|
|
$routes = service('routes');
|
|
|
|
|
|
|
|
$routes->group(
|
2022-06-29 16:19:22 +00:00
|
|
|
config('RestApi')
|
2022-06-22 10:48:58 +00:00
|
|
|
->gateway . 'podcasts',
|
|
|
|
[
|
|
|
|
'namespace' => 'Modules\Api\Rest\V1\Controllers',
|
|
|
|
'filter' => 'rest-api',
|
|
|
|
],
|
2022-09-28 14:00:05 +00:00
|
|
|
static function ($routes): void {
|
2022-06-22 10:48:58 +00:00
|
|
|
$routes->get('/', 'PodcastController::list');
|
|
|
|
$routes->get('(:num)', 'PodcastController::view/$1');
|
|
|
|
$routes->get('(:any)', 'ExceptionController::notFound');
|
|
|
|
}
|
|
|
|
);
|