Added test

This commit is contained in:
CHIEFSOFT\ameye
2025-07-05 12:38:24 -04:00
parent 4aadf2a084
commit 53d674f36b
4 changed files with 14 additions and 4 deletions
+11 -2
View File
@@ -14,8 +14,17 @@ class Home extends BaseController
public function test()
{
echo "hello world, from home controller";
phpinfo();
//const WRENCHBOARD_TEST_PATH = 9999099;
//echo "hello world, from home controller";
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
$in["action"] = WRENCHBOARD_TEST_PATH;
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = $ret;
return $this->respond($this->summaryReturnData($in, $out), 200);
}
public function mongoDbTest(){
$client = new \MongoDB("mongodb://chiefsoft:may12002@10.0.0.32:27017/","mongoClient");