mirror of
https://github.com/linuxserver/Heimdall-Apps.git
synced 2026-02-20 04:16:08 +08:00
Merge pull request #754 from ryanobeirne/immich-api-headers
Add api headers to test
This commit is contained in:
commit
651f3bf606
@ -16,7 +16,13 @@ class Immich extends \App\SupportedApps implements \App\EnhancedApps
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user