<?php $this->respond(['GET', 'POST'], '/get/crm', function ($request, $response, $service, $app) { $investors = Investors::getInvestorsForControlPanel(); $result = array("investors" => $investors); $response->json(Result::success('', $result)); });
<?php $this->respond(['GET', 'POST'], '/get/crm', function ($request, $response, $service, $app) { $investors = Investors::getInvestorsForControlPanel(); $result = array("investors" => $investors); $response->json(Result::success('', $result)); });