Update GalaxiesController.php

pull/2389/head
truckydev 2017-08-10 16:45:12 +02:00 committed by GitHub
parent f46c3a9142
commit ad5325440f
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class GalaxiesController extends AppController {
public function index() {
if ($this->_isRest()) {
$galaxies = $this->Galaxy->find('all',array('recursive' => -1));
return $this->RestResponse->viewData($galaxies);
return $this->RestResponse->viewData($galaxies, $this->response->type());
}else{
$galaxies = $this->paginate();
$this->set('list', $galaxies);