diff --git a/application/config/fhcomplete.php b/application/config/fhcomplete.php index 2a3b16462..3b862bf12 100644 --- a/application/config/fhcomplete.php +++ b/application/config/fhcomplete.php @@ -6,6 +6,7 @@ $config['fhc_version'] = '3.2'; $config['fhc_acl'] = array ( + 'bis.tbl_bundesland' => 'basis/nation', 'bis.tbl_nation' => 'basis/nation', 'bis.tbl_lgartcode' => 'basis/lgartcode', diff --git a/application/controllers/api/v1/codex/Bundesland.php b/application/controllers/api/v1/codex/Bundesland.php new file mode 100644 index 000000000..ad5c8e29a --- /dev/null +++ b/application/controllers/api/v1/codex/Bundesland.php @@ -0,0 +1,37 @@ +load->model('codex/bundesland_model', 'BundeslandModel'); + // Load set the uid of the model to let to check the permissions + $this->BundeslandModel->setUID($this->_getUID()); + } + + public function getAll() + { + $result = $this->BundeslandModel->loadWhole(); + + $this->response($result, REST_Controller::HTTP_OK); + } +} \ No newline at end of file