From c05e815c17f78bce0693b54097714cfae3031363 Mon Sep 17 00:00:00 2001 From: Thilina Hasantha Date: Fri, 26 Jul 2019 04:17:25 +0200 Subject: [PATCH] Add settings endpoint --- .../Settings/Rest/SettingsRestEndPoint.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 core/src/Settings/Rest/SettingsRestEndPoint.php diff --git a/core/src/Settings/Rest/SettingsRestEndPoint.php b/core/src/Settings/Rest/SettingsRestEndPoint.php new file mode 100644 index 00000000..0ce466a0 --- /dev/null +++ b/core/src/Settings/Rest/SettingsRestEndPoint.php @@ -0,0 +1,26 @@ + UIManager::getInstance()->getCompanyLogoUrl(), + 'Company: Name' => $sm->getSetting('Company: Name'), + 'Attendance: Request Attendance Location on Mobile' => + $sm->getSetting('Attendance: Request Attendance Location on Mobile'), + ]; + + return new IceResponse(IceResponse::SUCCESS, ['data' => $data]); + } +}