Files
sentcms/route/app.php
2019-06-29 21:14:58 +08:00

20 lines
896 B
PHP

<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
Route::group('admin', function(){
Route::rule('/', 'admin.index/index');
//Route::rule(':controller', 'admin.:controller/index');
Route::rule('login', 'admin.index/login');
Route::rule(':controller/:function', 'admin.:controller/:function');
});
Route::miss('index/miss');