Skip to content

Commit

Permalink
oubli ...
Browse files Browse the repository at this point in the history
  • Loading branch information
pprev94 committed Nov 27, 2023
1 parent 1e50daf commit ec2abf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ parameters:
iam_client_secret: "%env(resolve:IAM_CLIENT_SECRET)%"

api_entrepot_url: "%env(resolve:API_ENTREPOT_URL)%"
annexe_url: "%env(resolve:ANNEXE_URL)%"
annexes_url: "%env(resolve:ANNEXES_URL)%"

http_proxy: "%env(resolve:HTTP_PROXY)%"

Expand Down
4 changes: 2 additions & 2 deletions src/Services/EntrepotApi/AnnexeApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public function getAll(string $datastoreId, string $mimeType = null, string $pat
public function get(string $datastoreId, string $annexeId): array
{
// TODO : mettre à jour l'url annexe
$annexeUrl = $this->parameters->get('annexes_url');
$annexesUrl = $this->parameters->get('annexes_url');
$response = $this->request('GET', "datastores/$datastoreId/annexes/$annexeId");
$response['paths'][0] = $annexeUrl.$response['paths'][0];
$response['paths'][0] = $annexesUrl.$response['paths'][0];

return $response;
}
Expand Down

0 comments on commit ec2abf1

Please sign in to comment.