mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-16 16:27:54 +02:00
Add API GET Ping
This commit is contained in:
@ -213,6 +213,9 @@ public class Server : GlobalBase
|
||||
SendResponse(HttpStatusCode.OK, response,
|
||||
Enum.GetValues<LibraryConnector.LibraryType>().Select(lc => new KeyValuePair<byte, string?>((byte)lc, Enum.GetName(lc))));
|
||||
break;
|
||||
case "Ping":
|
||||
SendResponse(HttpStatusCode.OK, response, "Pong");
|
||||
break;
|
||||
default:
|
||||
SendResponse(HttpStatusCode.BadRequest, response);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user