mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-13 01:35:47 +00:00
22 lines
492 B
PHP
22 lines
492 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Api\Rest\V1\Config;
|
|
|
|
$routes = service('routes');
|
|
|
|
$routes->group(
|
|
config('Api')
|
|
->gateway . 'podcasts',
|
|
[
|
|
'namespace' => 'Modules\Api\Rest\V1\Controllers',
|
|
'filter' => 'rest-api',
|
|
],
|
|
function ($routes): void {
|
|
$routes->get('/', 'PodcastController::list');
|
|
$routes->get('(:num)', 'PodcastController::view/$1');
|
|
$routes->get('(:any)', 'ExceptionController::notFound');
|
|
}
|
|
);
|