更新目录结构

This commit is contained in:
2023-10-21 21:18:46 +08:00
parent 664295167d
commit 1153b13299
298 changed files with 3032 additions and 2173 deletions
+31
View File
@@ -0,0 +1,31 @@
<?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('/admin', function(){
Route::rule('auth/user/:action', 'admin.auth.User/:action');
Route::rule('auth/department/:action', 'admin.auth.Department/:action');
Route::rule('auth/role/:action', 'admin.auth.Role/:action');
Route::rule('system/:controller/:action', 'admin.system.:controller/:action');
Route::rule('student/:controller/:action', 'admin.student.:controller/:action');
Route::rule('exam/:controller/:action', 'admin.exam.:controller/:action');
Route::rule('point/:controller/:action', 'admin.point.:controller/:action');
Route::rule('operate/:controller/:action', 'admin.operate.:controller/:action');
})->middleware(['Api', 'Auth']);
Route::group('admin/auth', function(){
Route::post('login', 'admin.auth.Index/login');
})->middleware(['Api']);
Route::miss('index/miss');
+17
View File
@@ -0,0 +1,17 @@
<?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('/api', function(){
Route::rule('operate/:controller/:action', 'api.operate.:controller/:action')->middleware(['ApiAuth']);
})->middleware(['Api']);
Route::miss('index/miss');
+1 -12
View File
@@ -10,15 +10,4 @@
// +----------------------------------------------------------------------
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('customer/company/:action', 'customer.Company/:action');
})->middleware([\app\middleware\Check::class], 'api');
Route::miss('index/miss');
Route::rule('template', 'index/template');
-14
View File
@@ -1,14 +0,0 @@
<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
use think\facade\Route;
Route::group('auth', function(){
Route::post('login', 'auth.Index/login');
Route::get('member', 'auth.Index/member');
});