From 9eee6683fa27fefb51cb0c15f827c152d9ce4d8a Mon Sep 17 00:00:00 2001 From: glax Date: Fri, 8 Sep 2023 16:31:38 +0200 Subject: [PATCH] Add API GET Ping --- Tranga/Server.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tranga/Server.cs b/Tranga/Server.cs index 04e4e90..b3b7561 100644 --- a/Tranga/Server.cs +++ b/Tranga/Server.cs @@ -213,6 +213,9 @@ public class Server : GlobalBase SendResponse(HttpStatusCode.OK, response, Enum.GetValues().Select(lc => new KeyValuePair((byte)lc, Enum.GetName(lc)))); break; + case "Ping": + SendResponse(HttpStatusCode.OK, response, "Pong"); + break; default: SendResponse(HttpStatusCode.BadRequest, response); break;