2
0

Add API GET Ping

This commit is contained in:
glax 2023-09-08 16:31:38 +02:00
parent 1265c7a072
commit 9eee6683fa

View File

@ -213,6 +213,9 @@ public class Server : GlobalBase
SendResponse(HttpStatusCode.OK, response, SendResponse(HttpStatusCode.OK, response,
Enum.GetValues<LibraryConnector.LibraryType>().Select(lc => new KeyValuePair<byte, string?>((byte)lc, Enum.GetName(lc)))); Enum.GetValues<LibraryConnector.LibraryType>().Select(lc => new KeyValuePair<byte, string?>((byte)lc, Enum.GetName(lc))));
break; break;
case "Ping":
SendResponse(HttpStatusCode.OK, response, "Pong");
break;
default: default:
SendResponse(HttpStatusCode.BadRequest, response); SendResponse(HttpStatusCode.BadRequest, response);
break; break;