add element descriptions

This commit is contained in:
Yisroel Baum 2026-05-26 21:12:28 +03:00
parent f2dc1483dd
commit 72e4720787
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
10 changed files with 47 additions and 0 deletions

View file

@ -36,6 +36,7 @@ class ElementController
$childElements[] = [
'id' => $childElement->getId(),
'title' => $childElement->getTitle(),
'description' => $childElement->getDescription(),
];
}
@ -44,6 +45,7 @@ class ElementController
'element' => [
'id' => $element->getId(),
'title' => $element->getTitle(),
'description' => $element->getDescription(),
],
], 200);
}