Cml\Service\Route::options PHP Method

options() public method

增加options访问方式路由
public options ( string $pattern, string | array $action )
$pattern string 路由规则
$action string | array 执行的操作
    public function options($pattern, $action)
    {
        self::$rules[self::REQUEST_METHOD_OPTIONS . self::patternFactory($pattern)] = $action;
        return $this;
    }