修改配置文件

This commit is contained in:
陈俊宏 2024-07-02 16:17:53 +08:00
parent c88beb8313
commit e5747e98ad
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,6 @@
use think\facade\Route;
if (env('is_test')) {
print_r(111);die;
Route::post('/front/login', 'app\admin\Login@login')->validate(\app\validate\admin\LoginValidate::class);
Route::group('/front', function () {
Route::get('/homeData', 'app\front\Index@homeData');
@ -44,6 +43,8 @@ if (env('is_test')) {
Route::post('/front/loginSendSms', 'app\front\Login@loginSendSms')->validate(\app\validate\front\LoginValidate::class, 'sendSms')->middleware(\app\middleware\CorsMiddleware::class);
} else {
print_r(111);die;
Route::group('/api', function () {
Route::post('/front/login', 'app\admin\Login@login')->validate(\app\validate\admin\LoginValidate::class);
Route::group('/front', function () {