From dd7ab2b8e7b12cad6bf997f00a31f5cbc284633d Mon Sep 17 00:00:00 2001 From: Matthieu Date: Mon, 11 May 2026 14:14:32 +0200 Subject: [PATCH] feat(custom-fields) : ajoute endpoint GET /api/custom-fields/names Retourne la liste plate des noms de champs perso distincts (table custom_fields), pour alimenter une autocompletion cote frontend. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/Controller/CustomFieldNamesController.php | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/Controller/CustomFieldNamesController.php diff --git a/src/Controller/CustomFieldNamesController.php b/src/Controller/CustomFieldNamesController.php new file mode 100644 index 0000000..6d1b0d6 --- /dev/null +++ b/src/Controller/CustomFieldNamesController.php @@ -0,0 +1,37 @@ + '' + ORDER BY name ASC + SQL; + + $names = $this->connection->fetchFirstColumn($sql); + + return new JsonResponse($names); + } +}