31 lines
1.7 KiB
PHP
31 lines
1.7 KiB
PHP
<?php
|
|
use think\facade\Route;
|
|
|
|
// 首页路由
|
|
Route::get('/', 'app\index\controller\Index@index');
|
|
Route::get('index/index', 'app\index\controller\Index@index');
|
|
|
|
// --- 文章详情路由 ---
|
|
Route::get('kingdeenews/detail/:id', 'app\index\controller\Article\NewsCenterController@getKingdeeNewsDetail');
|
|
Route::get('companynews/detail/:id', 'app\index\controller\Article\NewsCenterController@getCompanyNewsDetail');
|
|
|
|
// --- 文章列表路由 ---
|
|
Route::get('kingdeenews$', 'app\index\controller\Article\NewsCenterController@getKingdeeNews');
|
|
Route::get('companynews$', 'app\index\controller\Article\NewsCenterController@getCompanyNews');
|
|
Route::get('technologyCenter$', 'app\index\controller\Article\NewsCenterController@getTechnologyCenter');
|
|
Route::get('technologyCategories$', 'app\index\controller\Article\NewsCenterController@getTechnologyCategories');
|
|
Route::get('newscentertop4', 'app\index\controller\Article\ArticleController@getNewsCenterTop4');
|
|
Route::get('newsbycategory/:category', 'app\index\controller\Article\NewsCenterController@getNewsByCategory');
|
|
|
|
// --- 文章互动路由 ---
|
|
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');
|
|
|
|
// --- 前端导航与单页路由 ---
|
|
Route::get('headmenu', 'app\index\controller\Index@getHeadMenu');
|
|
Route::rule('onepage/:path', 'app\index\controller\Index@getOnePageByPath', 'GET')->pattern(['path' => '.*']);
|
|
|
|
// --- 日志相关路由 ---
|
|
Route::get('index/getLogs', 'app\index\controller\Index@getLogs');
|
|
Route::get('getLogs', 'app\index\controller\Index@getLogs'); |