Pop\Web\Mobile::route PHP Method

route() public method

Method to route to the appropriate URL
public route ( ) : void
return void
    public function route()
    {
        switch ($this->force) {
            case 0:
                if ($this->mobile) {
                    $this->goToMobile();
                } else {
                    $this->goToDesktop();
                }
                break;
            case 1:
                $this->goToDesktop();
                break;
            case 2:
                $this->goToMobile();
                break;
        }
    }