|
|
<?php
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
Route::prefix('api')->group(function () {
|
|
|
Route::post('/inquiry',[\App\Http\Controllers\Api\InquiryController::class,'inquiry']);
|
|
|
Route::post('/customerVisit',[\App\Http\Controllers\Cside\Visit\VisitController::class,'customerVisit']);
|
|
|
});
|
|
|
|
|
|
|
|
|
Route::middleware(['hasProject', 'cors'])->group(function () {
|
|
|
//首页
|
|
|
Route::get('/', [\App\Http\Controllers\Amp\IndexController::class, 'index']);
|
|
|
//搜索页
|
|
|
Route::get('/search',[\App\Http\Controllers\Amp\IndexController::class,'search']);
|
|
|
//其他页面路由
|
|
|
Route::any('{any}', [\App\Http\Controllers\Amp\IndexController::class,'router'])->where('any', '.*');
|
|
|
}); |