From 7e472c3649436fcd7440f936e5810dd85c20a6d4 Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Wed, 18 Dec 2019 10:45:32 +0100
Subject: [PATCH] FEAT #12635 TIME 0:10 Contacts custom fields routes

---
 rest/index.php | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/rest/index.php b/rest/index.php
index 152c26f3e57..d9710d1c7b3 100755
--- a/rest/index.php
+++ b/rest/index.php
@@ -118,6 +118,13 @@ $app->delete('/contacts/{id}', \Contact\controllers\ContactController::class . '
 $app->put('/contacts/{id}/activation', \Contact\controllers\ContactController::class . ':updateActivation');
 $app->get('/formattedContacts/{id}/types/{type}', \Contact\controllers\ContactController::class . ':getLightFormattedContact');
 
+//ContactsCustomFields
+$app->get('/contactsCustomFields', \Contact\controllers\ContactCustomFieldController::class . ':get');
+$app->post('/contactsCustomFields', \Contact\controllers\ContactCustomFieldController::class . ':create');
+$app->put('/contactsCustomFields/{id}', \Contact\controllers\ContactCustomFieldController::class . ':update');
+$app->delete('/contactsCustomFields/{id}', \Contact\controllers\ContactCustomFieldController::class . ':delete');
+
+//ContactsGroups
 $app->get('/contactsGroups', \Contact\controllers\ContactGroupController::class . ':get');
 $app->post('/contactsGroups', \Contact\controllers\ContactGroupController::class . ':create');
 $app->get('/contactsGroups/{id}', \Contact\controllers\ContactGroupController::class . ':getById');
-- 
GitLab