Cml\Route::patch PHP Method

patch() public static method

增加patch访问方式路由
public static patch ( string $pattern, string | array $action ) : void
$pattern string 路由规则
$action string | array 执行的操作
return void
    public static function patch($pattern, $action)
    {
        Cml::getContainer()->make('cml_route')->patch($pattern, $action);
    }