public function map($pattern, $callable)
    {
        $route = new \Slim\Route($pattern, $callable);
        $this->routes[] = $route;

        return $route;
    }
public function map($pattern, $callable)
    {
        $route = new \Slim\Route($pattern, $callable);
        $this->routes[] = $route;

        return $route;
    }
public function map ( $ pattern , $ callable ) { $ route = new \ Slim \ Route ( $ pattern , $ callable ) ; $ this -> routes [ ] = $ route ; return $ route ; }
Map a route object to a callback function
@param  string     $pattern      The URL pattern (ie. "/books/:id")
@param  mixed      $callable     Anything that returns TRUE for is_callable()
@return \Slim\Route
Map a route object to a callback function