Cml\Route::rest PHP 메소드

rest() 공개 정적인 메소드

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