Browse Source

just moved a function

dev
Cerys 3 weeks ago
parent
commit
6f683d752a
  1. 25
      src/Core/DeegraphServer.php

25
src/Core/DeegraphServer.php

@ -29,16 +29,6 @@ class DeegraphServer
$this->AllowSelfSignedCerts = $allowSelfSignedCerts; $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. * Runs a request against the Deegraph server.
* *
@ -169,4 +159,19 @@ class DeegraphServer
); );
return new DeegraphNodeDetails($response); 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);
}
} }

Loading…
Cancel
Save