From 54790880aaf85938462015d32618aae3d2643554 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sun, 1 Jul 2018 20:09:52 -0600 Subject: [PATCH] Add "ping" API command --- api/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/index.php b/api/index.php index 86dc528..7aafb61 100644 --- a/api/index.php +++ b/api/index.php @@ -146,6 +146,10 @@ switch ($VARS['action']) { } break; + + case "ping": + exit(json_encode(['status' => 'OK'])); + default: sendError("", "Invalid action or no action sent."); } \ No newline at end of file