public function api_link($str = '') { $str = ltrim($str, '/'); return $this->site_url('api/' . $str); }