29 lines
744 B
PHP
29 lines
744 B
PHP
<?php
|
|
|
|
use App\Http\Controllers\CommonController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
});
|
|
|
|
|
|
|
|
//ueditor上传
|
|
Route::prefix("util/api/upload")->group(function () {
|
|
Route::get('/ueditor', [CommonController::class, "upload"]);
|
|
Route::post('/ueditor', [CommonController::class, "upload"]);
|
|
|
|
});
|