Cml\Service\Route::get PHP Method

get() public method

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