src/Application.php
public function query($method, $pattern, $callback)
    {
        $route = new Route($pattern, $callback, $method);
        $this['router']->addRoute($route);

        return $route;
    }
public function query($method, $pattern, $callback)
    {
        $route = new Route($pattern, $callback, $method);
        $this['router']->addRoute($route);

        return $route;
    }
public function query ( $ method , $ pattern , $ callback ) { $ route = new Route ( $ pattern , $ callback , $ method ) ; $ this [ 'router' ] -> addRoute ( $ route ) ; return $ route ; }
Creates a route for a request.

@param  string   $method   HTTP method to match.
@param  string   $pattern  Path pattern which matches the callback.
@param  callable $callback Callback function which processes the request.

@return Route
Creates a route for a request .