Add "ping" API command
This commit is contained in:
parent
6782d518eb
commit
54790880aa
@ -146,6 +146,10 @@ switch ($VARS['action']) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
case "ping":
|
||||||
|
exit(json_encode(['status' => 'OK']));
|
||||||
|
|
||||||
default:
|
default:
|
||||||
sendError("", "Invalid action or no action sent.");
|
sendError("", "Invalid action or no action sent.");
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user