src/MVC/MVC.php
public function ajax($patternUri, $action, $name)
    {
        $route = new Route("ajax", $patternUri, $action, $name);
        $this->container->addRoute($route);
        return $route;
    }
public function ajax($patternUri, $action, $name)
    {
        $route = new Route("ajax", $patternUri, $action, $name);
        $this->container->addRoute($route);
        return $route;
    }
public function ajax ( $ patternUri , $ action , $ name ) { $ route = new Route ( "ajax" , $ patternUri , $ action , $ name ) ; $ this -> container -> addRoute ( $ route ) ; return $ route ; }
Add AJAX route

@access public
@param string $patternUri
@param string|\callable $action
@paran string $name
@return Route
Add AJAX route