官方demo 復(fù)制過(guò)來(lái)的,訪問(wèn):http://127.0.0.1:8787/test/
未如期返回 test
不知道是什么原因?
<?php
/**
* This file is part of webman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* @link http://www.wtbis.cn/
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
use Webman\Route;
Route::any('/test', function ($request) {
return response('test');
});
404
linux
Route::group('/collect', function () use ($TOOL_MID) {
Route::group('/collect', function () {
Route::any('/addCollectForm', [\App\toolManage\controller\collect\CollectController::class, 'addCollectForm']);//提交表單
})->middleware($TOOL_MID);
})->middleware($TOOL_MID);
直接用any格式設(shè)置好用點(diǎn)