Add API GET Ping
This commit is contained in:
parent
1265c7a072
commit
9eee6683fa
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user