mirror of https://github.com/MISP/MISP
Update GalaxiesController.php
parent
e6203fb6dc
commit
f46c3a9142
|
@ -18,9 +18,7 @@ class GalaxiesController extends AppController {
|
|||
public function index() {
|
||||
if ($this->_isRest()) {
|
||||
$galaxies = $this->Galaxy->find('all',array('recursive' => -1));
|
||||
$this->set('galaxies', $galaxies);
|
||||
$this->set('_serialize', array('galaxies'));
|
||||
//return $this->RestResponse->viewData($galaxies, $this->response->type());
|
||||
return $this->RestResponse->viewData($galaxies);
|
||||
}else{
|
||||
$galaxies = $this->paginate();
|
||||
$this->set('list', $galaxies);
|
||||
|
|
Loading…
Reference in New Issue