- Renamed every controller that has conflicts with class name

- Added routes to renamed controllers
 - Fixed controllers parameters in get method
This commit is contained in:
paolo
2016-05-18 11:24:10 +02:00
parent de9e92e3b0
commit 5d7d79b086
30 changed files with 119 additions and 87 deletions
@@ -33,11 +33,12 @@ class Entwicklungsteam extends APIv1_Controller
*/
public function getEntwicklungsteam()
{
$entwicklungsteamID = $this->get('entwicklungsteam_id');
$studiengang_kz = $this->get('studiengang_kz');
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
if(isset($entwicklungsteamID))
if(isset($studiengang_kz) && isset($mitarbeiter_uid))
{
$result = $this->EntwicklungsteamModel->load($entwicklungsteamID);
$result = $this->EntwicklungsteamModel->load(array($studiengang_kz, $mitarbeiter_uid));
$this->response($result, REST_Controller::HTTP_OK);
}