From 6f683d752a9b26296682c1212ae3f191865c301a Mon Sep 17 00:00:00 2001 From: Cerys Date: Tue, 3 Dec 2024 23:31:15 +0000 Subject: [PATCH] just moved a function --- src/Core/DeegraphServer.php | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/Core/DeegraphServer.php b/src/Core/DeegraphServer.php index 9ca2da4..5ba9623 100644 --- a/src/Core/DeegraphServer.php +++ b/src/Core/DeegraphServer.php @@ -29,16 +29,6 @@ class DeegraphServer $this->AllowSelfSignedCerts = $allowSelfSignedCerts; } - /** - * Runs an API request against the Deegraph Server, and returns back information about the Deegraph Server. - * @return ServerInfo - */ - public function ServerInfo(): ServerInfo - { - $response = $this->RunRawRequest(endpoint: "/api/v1/@server_info"); - return new ServerInfo(response: $response); - } - /** * Runs a request against the Deegraph server. * @@ -169,4 +159,19 @@ class DeegraphServer ); return new DeegraphNodeDetails($response); } + + /** + * Runs an API request against the Deegraph Server, and returns back information about the Deegraph Server. + * @return ServerInfo + */ + public function ServerInfo(UUID $actorID): ServerInfo + { + $response = $this->RunRawRequest( + actorID: $actorID, + endpoint: "/api/v1/@server_info", + method: "GET", + body: null, + ); + return new ServerInfo(response: $response); + } }