chg: [instance] status moved to the correct controller
parent
acf4c004fa
commit
5aaaa507fa
|
@ -14,4 +14,12 @@ class InstanceController extends AppController
|
||||||
$this->set('metaGroup', $this->isAdmin ? 'Administration' : 'Cerebrate');
|
$this->set('metaGroup', $this->isAdmin ? 'Administration' : 'Cerebrate');
|
||||||
$this->set('md', file_get_contents(ROOT . '/README.md'));
|
$this->set('md', file_get_contents(ROOT . '/README.md'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function status()
|
||||||
|
{
|
||||||
|
$data = file_get_contents(APP . 'VERSION.json');
|
||||||
|
$data = json_decode($data, true);
|
||||||
|
$data['user'] = $this->ACL->getUser();
|
||||||
|
return $this->RestResponse->viewData($data, 'json');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,14 +15,6 @@ class MetaTemplatesController extends AppController
|
||||||
return $this->RestResponse->viewData($result, 'json');
|
return $this->RestResponse->viewData($result, 'json');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function status()
|
|
||||||
{
|
|
||||||
$data = file_get_contents(APP . 'VERSION.json');
|
|
||||||
$data = json_decode($data, true);
|
|
||||||
$data['user'] = $this->ACL->getUser();
|
|
||||||
return $this->RestResponse->viewData($data, 'json');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$this->CRUD->index([
|
$this->CRUD->index([
|
||||||
|
|
Loading…
Reference in New Issue