ufutx.love.util/routes/api.php
2026-05-12 10:45:54 +08:00

26 lines
739 B
PHP

<?php
use App\Http\Controllers\CommonController;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
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!
|
*/
//ueditor上传
Route::prefix("upload")->group(function () {
Route::match(["get", "post"], '/ueditor', [CommonController::class, "upload"]);
});
Route::get("test", [Controller::class, "test"]);