作者 刘锟

update

1 -<?php  
2 -  
3 -use Illuminate\Support\Facades\Route;  
4 -  
5 -Route::prefix('api')->group(function () {  
6 - Route::post('/inquiry',[\App\Http\Controllers\Api\InquiryController::class,'inquiry']);  
7 - Route::post('/customerVisit',[\App\Http\Controllers\Cside\Visit\VisitController::class,'customerVisit']);  
8 -});  
9 -  
10 -  
11 -Route::middleware(['hasProject', 'cors'])->group(function () {  
12 - //首页  
13 - Route::get('/', [\App\Http\Controllers\Amp\IndexController::class, 'index']);  
14 - //搜索页  
15 - Route::get('/search',[\App\Http\Controllers\Amp\IndexController::class,'search']);  
16 - //其他页面路由  
17 - Route::any('{any}', [\App\Http\Controllers\Amp\IndexController::class,'router'])->where('any', '.*');  
18 -});