Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Nov 4, 2023
1 parent bc18254 commit 9312d0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion www/controllers/Api/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getHostAuthenticationStatus()
* It can be an API key authentication or a host authId+token authentication
*/
public function valid(string $authHeader = null, object $data = null)
{
{
/**
* If API key is specified through the Authorization header
* e.g. "Authorization: Bearer <API_KEY>"
Expand Down
2 changes: 1 addition & 1 deletion www/controllers/Api/Host/Host.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function execute()
if (!empty($this->data->hostname)) {
$myhost->setHostname($this->data->hostname);
}

/**
* If no component is specified, return all active hosts
* This request is only available with a valid API key authentication, not for hosts id+token authentication
Expand Down
7 changes: 3 additions & 4 deletions www/controllers/Api/Snapshot/Snapshot.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Snapshot extends \Controllers\Api\Controller
private $postFiles;

public function execute()
{
{
$myrepo = new \Controllers\Repo\Repo();
$mypackage = new \Controllers\Repo\Package();

Expand Down Expand Up @@ -66,11 +66,10 @@ public function execute()
* https://repomanager.mydomain.net/api/v2/snapshot/$this->snapId/reconstruct
*/
if ($this->action == 'reconstruct') {

}
}
}

throw new Exception('Invalid request');
}
}
}

0 comments on commit 9312d0d

Please sign in to comment.