-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathroute.php
More file actions
24 lines (23 loc) · 1.06 KB
/
route.php
File metadata and controls
24 lines (23 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use \think\Route;
//兼容模式 不支持伪静态可开启
//\think\Url::root('index.php?s=');
Route::group('admin',function(){
// Route::rule('/index2','admin/Index/index2','get');
// Route::controller('index','admin/Index');
// resource('system_menus','SystemMenus');
// Route::rule('/menus','SystemMenus','get');
// Route::resource('menus','admin/SystemMenus',['var'=>['menus'=>'menu_id']]);
// Route::miss(function(){
// return '页面不存在!';
// });
});