public function add($query, $resource, array $meta = [])
    {
        $query = static::clean($query);
        list($method, $uri) = explode(' ', $query);

        $this->routes[$query] = new Route($method, $uri, $resource, $meta);

        return $this;
    }
public function add($query, $resource, array $meta = [])
    {
        $query = static::clean($query);
        list($method, $uri) = explode(' ', $query);

        $this->routes[$query] = new Route($method, $uri, $resource, $meta);

        return $this;
    }
public function add ( $ query , $ resource , array $ meta = [ ] ) { $ query = static :: clean ( $ query ) ; list ( $ method , $ uri ) = explode ( ' ' , $ query ) ; $ this -> routes [ $ query ] = new Route ( $ method , $ uri , $ resource , $ meta ) ; return $ this ; }
Add route definition

@param string $query
@param $resource
@param array $meta
@return $this
Add route definition