Cml\Route::get PHP Method

get() public static method

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