diff --git a/routes/api.php b/routes/api.php index bccc1f5..e23f098 100644 --- a/routes/api.php +++ b/routes/api.php @@ -16,11 +16,5 @@ use Illuminate\Support\Facades\Route; | */ -//ueditor上传 -Route::prefix("upload")->group(function () { - Route::get('/ueditor', [CommonController::class, "upload"]); - Route::post('/ueditor', [CommonController::class, "upload"]); - -}); Route::get("test", [Controller::class, "test"]); diff --git a/routes/web.php b/routes/web.php index b130397..81e0834 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,5 +1,6 @@ group(function () { + Route::get('/ueditor', [CommonController::class, "upload"]); + Route::post('/ueditor', [CommonController::class, "upload"]); + +});