- try {
- $this->github->fetchRepos(
- $this->app->getRequest()->getQuery("page"),
- [$this, "reposCallback"]
- )->send();
- } catch (\app\Github\Exception $exception) {
- $this->view->addData(compact("exception"));
- }
+ $this->github->listRepos(
+ $this->app->getRequest()->getQuery("page"),
+ [$this, "reposCallback"]
+ )->send();