public function __construct() { $this->endpoints = array('/' => array('callback' => array($this, 'get_index'), 'methods' => 'GET', 'args' => array('context' => array('default' => 'view')))); }