pattern(['page' => 'about|blog|blog-details|contact|portfolio|portfolio-details|service-details|services|team|articles']); // --- 模板初始化接口 --- Route::get('init', 'app\index\controller\Index@init'); // --- Banner 路由 --- Route::get('getBanners', 'app\index\controller\BannerController@getBanners'); // --- 前端其他数据路由 --- Route::get('footerdata', 'app\index\controller\Index@getFooterData'); Route::get('companyInfos', 'app\index\controller\Index@getCompanyInfos'); Route::post('requirement', 'app\index\controller\Index@requirement'); Route::get('homeData', 'app\index\controller\Index@getHomeData'); // --- 新闻中心列表路由 --- Route::get('getCenterNews', 'app\index\controller\Article\NewsCenterController@getCenterNews'); Route::get('getNewsDetail/:id', 'app\index\controller\Article\NewsCenterController@getNewsDetail'); // --- 文章分类路由 --- Route::get('getArticleCategories', 'app\index\controller\Article\ArticleController@getArticleCategories'); // --- 新闻中心互动路由 --- Route::post('articleViews/:id', 'app\index\controller\Article\ArticleController@articleViews'); Route::post('articleLikes/:id', 'app\index\controller\Article\ArticleController@articleLikes'); Route::post('articleUnlikes/:id', 'app\index\controller\Article\ArticleController@articleUnlikes');