Skip to content

Commit

Permalink
Add api headers to test
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanobeirne committed Jul 6, 2024
1 parent 7ab5984 commit d735e62
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Immich/Immich.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ public function __construct()

public function test()
{
$test = parent::appTest($this->url("server-info/statistics"));
$attrs = [
"headers" => [
"Accept" => "application/json",
"x-api-key" => $this->config->api_key,
],
];
$test = parent::appTest($this->url("server-info/statistics"), $attrs);
echo $test->status;
}

Expand Down

0 comments on commit d735e62

Please sign in to comment.