chg: [instance] status moved to the correct controller

pull/32/head
iglocska 2020-09-29 13:20:33 +02:00
parent acf4c004fa
commit 5aaaa507fa
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
2 changed files with 8 additions and 8 deletions

View File

@ -14,4 +14,12 @@ class InstanceController extends AppController
$this->set('metaGroup', $this->isAdmin ? 'Administration' : 'Cerebrate');
$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');
}
}

View File

@ -15,14 +15,6 @@ class MetaTemplatesController extends AppController
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()
{
$this->CRUD->index([