'GET', 'path' => '/[page/{page:[0-9]+}]', 'handler' => [WebController::class, 'home'], 'name' => 'home', ], [ 'method' => 'GET', 'path' => '/faq', 'handler' => [WebController::class, 'faq'], 'name' => 'faq', ], [ 'method' => 'GET', 'path' => '/{code:[0-9a-zA-Z]+}[.m3u[8]]', 'handler' => [WebController::class, 'redirect'], 'name' => 'redirect', ], [ 'method' => 'GET', 'path' => '/{code:[0-9a-zA-Z]+}/details', 'handler' => [WebController::class, 'details'], 'name' => 'details', ], /* |-------------------------------------------------------------------------- | API routes |-------------------------------------------------------------------------- */ [ 'method' => 'GET', 'path' => '/{code:[0-9a-zA-Z]+}/json', 'handler' => [ApiController::class, 'json'], 'name' => 'json', ], [ 'method' => 'GET', 'path' => '/{code:[0-9a-zA-Z]+}/qrcode', 'handler' => [ApiController::class, 'makeQrCode'], 'name' => 'api::makeQrCode', ], // [ // 'method' => 'GET', // 'path' => '/{code:[0-9a-zA-Z]+}/logo/{hash:[0-9a-z]+}', // 'handler' => [ApiController::class, 'logo'], // 'name' => 'api::getChannelLogo', // ], /* |-------------------------------------------------------------------------- | Other routes |-------------------------------------------------------------------------- */ [ 'method' => '*', 'path' => '/{path:.*}', 'handler' => [BasicController::class, 'notFound'], 'name' => 'not-found', ], ];