From 493923886199c7893bf4c8074137be5b8f969ae9 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 14 Jan 2019 20:17:36 +0000 Subject: [PATCH] [server] Fix router --- logic/Actions/FetchData.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/logic/Actions/FetchData.php b/logic/Actions/FetchData.php index b293e3b..2f8111a 100644 --- a/logic/Actions/FetchData.php +++ b/logic/Actions/FetchData.php @@ -3,21 +3,16 @@ namespace AirQuality\Actions; -class Index { +class FetchData { private $settings; private $renderer; public function __construct( \SBRL\TomlConfig $in_settings) { $this->settings = $in_settings; - $this->renderer = $in_renderer; } public function handle() { - echo($this->renderer->render_file(ROOT_DIR."templates/main.html", [ - "title" => "Home", - "content" => file_get_contents(ROOT_DIR."templates/mockup.html"), - "footer_html" => "" - ])); + echo("Testing"); } }