Skip to content

Commit

Permalink
Connect website to api
Browse files Browse the repository at this point in the history
  • Loading branch information
fouzo95 committed May 30, 2022
1 parent d10c16c commit 3bdecb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"header" => "Authorization: Basic " . base64_encode("$username:$password"),
)));

$url = 'http://API:5000/pozos/api/v1.0/get_student_ages';
$url = 'http://:5000/pozos/api/v1.0/get_student_ages';
$list = json_decode(file_get_contents($url, false, $context), true);
echo "<p style='color:red;; font-size: 20px;'>This is the list of the student with age</p>";
foreach($list["student_ages"] as $key => $value) {
Expand Down

0 comments on commit 3bdecb2

Please sign in to comment.