24 lines
1.2 KiB
PHP
24 lines
1.2 KiB
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::rule('/', 'Index/index');
|
|
Route::rule('test', 'Index/test');
|
|
|
|
Route::group('/', function(){
|
|
Route::rule('system/:controller/:action', 'system.:controller/:action');
|
|
Route::rule('auth/user/:action', 'auth.User/:action');
|
|
Route::rule('auth/department/:action', 'auth.Department/:action');
|
|
Route::rule('auth/role/:action', 'auth.Role/:action');
|
|
// Route::rule('tools/filter/:action', 'tools.Filter/:action');
|
|
// Route::rule('tools/inspect/:action', 'tools.Inspect/:action');
|
|
Route::rule('customer/company/:action', 'customer.Company/:action');
|
|
})->middleware([\app\middleware\Check::class], 'api'); |