Skip to content

Commit

Permalink
Fixed incorrect api reference
Browse files Browse the repository at this point in the history
The api URL is server/statistics, and no more server-info/statistics

https://immich.app/docs/api/get-server-statistics
  • Loading branch information
Inervo authored Oct 27, 2024
1 parent aee4153 commit 4f74233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Immich/Immich.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function test()
"x-api-key" => $this->config->api_key,
],
];
$test = parent::appTest($this->url("server-info/statistics"), $attrs);
$test = parent::appTest($this->url("server/statistics"), $attrs);
echo $test->status;
}

Expand All @@ -35,7 +35,7 @@ public function livestats()
"x-api-key" => $this->config->api_key,
],
];
$res = parent::execute($this->url("server-info/statistics"), $attrs);
$res = parent::execute($this->url("server/statistics"), $attrs);
$details = json_decode($res->getBody());

$data = [];
Expand Down

0 comments on commit 4f74233

Please sign in to comment.