37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\IndexController;
|
|
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::prefix('api')->middleware(['webapi'])->group(function () {
|
|
|
|
});
|
|
|
|
/**
|
|
* 页面
|
|
*/
|
|
Route::middleware(['webapi'])->group(function () {
|
|
Route::any('/', IndexController::class);
|
|
Route::any('/{method}', IndexController::class);
|
|
Route::any('/{method}/{action}', IndexController::class);
|
|
Route::any('/{method}/{action}/{child}', IndexController::class);
|
|
Route::any('/{method}/{action}/{child}/{n}', IndexController::class);
|
|
Route::any('/{method}/{action}/{child}/{n}/{c}', IndexController::class);
|
|
});
|