Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
Scope (#54)
Browse files Browse the repository at this point in the history
* Modification de version tempsi

* correct2

* return final version
  • Loading branch information
alexcaussades authored Sep 3, 2023
1 parent 59c9f6c commit 73336c8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/Http/Controllers/temsiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,13 @@ public function link_wintemp_eu()
}

public function get_temsi(){
/** recuperer les fichiers sur le serveur */
$response = Http::get($this->link_temsi_fr());
Storage::put("public/temsi/temsi.pdf", $response->body());
return response()->download("storage/temsi/temsi.pdf");
/** mettre les entetes du PDF pour le lire */
return redirect($this->link_temsi_fr());
}

public function get_wintemp(){
/** mettre les entetes du PDF pour le lire */
$response = Http::get($this->link_wintemp_fr());
Storage::put("public/wintemp/wintemp.pdf", $response->body());
return response()->download("public/wintemp/wintemp.pdf");
return redirect($this->link_wintemp_fr());
}

public function all_chart()
Expand Down

0 comments on commit 73336c8

Please sign in to comment.