public static function rest($pattern, $action) { Cml::getContainer()->make('cml_route')->rest($pattern, $action); }