Added test
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user