customers API

This commit is contained in:
CHIEFSOFT\ameye
2024-07-17 11:55:40 -04:00
parent 2fa372e3bd
commit 3d88588285
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -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);
}
}