在webman中假如想限定路由api/index/auth只能以post的方式進(jìn)行請(qǐng)求 1.在config/route.php中寫Route::post('/api/index/auth', [app\api\controller\index::class, 'auth']); 2.用annotation注解路由插件 有沒有其他更好的方式?比如像.net程序中,直接在訪求上加過濾屬性[httppost]就可以