Tests bis zu Gericht Model

This commit is contained in:
2024-01-09 09:51:28 +01:00
parent 4b11857f6d
commit c47abaf4bb
3 changed files with 43 additions and 35 deletions

View File

@@ -1,5 +1,5 @@
<?php
//Programmiert von: Max Heer, Getestet von:
//Programmiert von: Max Heer, Getestet von: Samuel Wolff
namespace ppb\Controller;
@@ -16,13 +16,13 @@ class EnthaeltController
$this->db = new EnthaeltModel();
}
public function getInhaltsstoffe($gerichtId)
public function getEnthaelt($gerichtId)
{
$result = $this->db->getEnthaelt($gerichtId);
return json_encode($result);
}
public function insertEnthaelt($data)
public function writeEnthaelt($data)
{
$result = $this->db->insertEnthaelt($data);
return json_encode($result);