mirror of
https://github.com/C9Glax/tranga.git
synced 2025-04-15 12:53:17 +02:00
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,
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user