From cab0d365557ebfdf52bd1aa94479e443bb1a1a78 Mon Sep 17 00:00:00 2001 From: Samuel Wolff Date: Mon, 11 Dec 2023 15:33:08 +0100 Subject: [PATCH] Kommentare KindController --- Controller/KindController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Controller/KindController.php b/Controller/KindController.php index c2e4f2f..7f13c2e 100644 --- a/Controller/KindController.php +++ b/Controller/KindController.php @@ -24,18 +24,21 @@ class KindController{ return json_encode($result); } + // Updated ein Kind public function updateKind($kindId, $data){ $result = $this->db->updateKind($kindId, $data); return json_encode($result); } + // Fügt ein Kind hinzu public function addKind($data){ $result = $this->db->addKind($data); return json_encode($data); } + // Löscht ein Kind public function deleteKind($kindId){ $result = $this->db->deleteKind($kindId);