fixes for internal mxisd endpoints
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
<?php
|
||||
require_once("../database.php");
|
||||
$response = array();
|
||||
$response = new stdClass;
|
||||
try {
|
||||
$inputJSON = file_get_contents('php://input');
|
||||
$input = json_decode($inputJSON, TRUE);
|
||||
if (empty($input)) {
|
||||
throw new Exception('no valid json as input present');
|
||||
}
|
||||
if (!isset($input["lookup"])) {
|
||||
throw new Exception('"lookup" is not defined');
|
||||
}
|
||||
@@ -40,4 +43,4 @@ try {
|
||||
$response["error"] = $e->getMessage();
|
||||
}
|
||||
print (json_encode($response, JSON_PRETTY_PRINT) . "\n");
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user