更新功能
This commit is contained in:
@@ -10,8 +10,11 @@
|
||||
// +----------------------------------------------------------------------
|
||||
use think\facade\Route;
|
||||
|
||||
Route::get('think', function () {
|
||||
return 'hello,ThinkPHP6!';
|
||||
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::get('hello/:name', 'index/hello');
|
||||
Route::miss('index/miss');
|
||||
Reference in New Issue
Block a user