api.php
1.3 KB
<?php
use App\Http\Controllers\Api\NoticeController;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::middleware(['cors'])->group(function () {
//埋点
Route::any('/customerVisit',[NoticeController::class,'customerVisit']);
//表单提交
Route::any('/traffic_visit',[NoticeController::class,'trafficVisit']);
Route::any('/inquiry',[NoticeController::class,'inquiry']);
Route::any('/inquiryQd',[NoticeController::class,'inquiryQd']);
//收集邮箱或者手机号
Route::any('/inquiryOtherInfo',[NoticeController::class,'inquiryOtherInfo']);
//A端上传验证文件
Route::any('/upload_verify_file',[NoticeController::class, 'uploadVerifyFile']);
//A端上传amp站验证文件
Route::any('/upload_amp_verify_file',[NoticeController::class, 'uploadAmpVerifyFile']);
//网站html处理
Route::any('/website_html_handle',[NoticeController::class, 'websiteHtml']);
});