Browse Source

Delete api.php

main
LoveesYe 3 years ago committed by GitHub
parent
commit
cd4b032013
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      web/api.php

16
web/api.php

@ -1,16 +0,0 @@ @@ -1,16 +0,0 @@
<?php
error_reporting(0);
header('Content-Type: application/json; charset=UTF-8');
include 'monitor.php';
$post = file_get_contents('php://input');
$param = json_decode($post, true);
$result = [];
if($param && count($param)>0){
foreach($param as $target){
$result[] = node_monitor_local('1', $target);
}
}
$data = ['msg'=>$result];
echo json_encode($data);
Loading…
Cancel
Save