customers API
This commit is contained in:
@@ -308,4 +308,15 @@ public function signatoryUpdate():ResponseInterface{
|
||||
];
|
||||
return $this->respond($data, 200);
|
||||
}
|
||||
|
||||
public function listCustomers():ResponseInterface{
|
||||
|
||||
$query = $this->db->query("select * from customers order by id desc");
|
||||
$row = $query->getResult('array');
|
||||
$data = [
|
||||
'call_return' => '100',
|
||||
'records' => $row
|
||||
];
|
||||
return $this->respond($data, 200);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user