1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-20 11:03:01 +08:00
2021-04-08 19:58:30 +08:00

26 lines
444 B
PHP

<?php
namespace App\Http\Api\Controllers;
use App\Services\Logic\Page\ArticleInfo as PageInfoService;
/**
* @RoutePrefix("/api/page")
*/
class PageController extends Controller
{
/**
* @Get("/{id:[0-9]+}/info", name="api.page.info")
*/
public function infoAction($id)
{
$service = new PageInfoService();
$page = $service->handle($id);
return $this->jsonSuccess(['page' => $page]);
}
}