aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/AppBundle/Controller/AllDataController.php')
-rw-r--r--src/AppBundle/Controller/AllDataController.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/AppBundle/Controller/AllDataController.php b/src/AppBundle/Controller/AllDataController.php
index 78b4752..86ec7c5 100644
--- a/src/AppBundle/Controller/AllDataController.php
+++ b/src/AppBundle/Controller/AllDataController.php
@@ -16,7 +16,7 @@ class AllDataController extends Controller
{
// Get cURL resource
$curl = curl_init();
- curl_setopt($curl, CURLOPT_URL, "https://pollutometerapi.azurewebsites.net/api/Readings");
+ curl_setopt($curl, CURLOPT_URL, "https://pollutometerapi.azurewebsites.net/api/Readings/lastweek");
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json')); // Assuming you're requesting JSON
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
// Send the request & save response to $resp
@@ -40,6 +40,5 @@ class AllDataController extends Controller
return $this->render('default/AllDataPage.html.twig',$parametersToTwig);
-
}
} \ No newline at end of file