新增模板,修复模板选择bug
This commit is contained in:
@@ -5,6 +5,11 @@ use think\facade\Route;
|
||||
Route::get('/', 'app\index\controller\Index@index');
|
||||
Route::get('index/index', 'app\index\controller\Index@index');
|
||||
|
||||
// --- 模板通用页面路由 ---
|
||||
Route::get('article_detail/:id', 'app\index\controller\Index@articleDetail');
|
||||
Route::get(':page', 'app\index\controller\Index@page')
|
||||
->pattern(['page' => 'about|blog|blog-details|contact|portfolio|portfolio-details|service-details|services|team|articles']);
|
||||
|
||||
// --- 模板初始化接口 ---
|
||||
Route::get('init', 'app\index\controller\Index@init');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user