summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--localwebsite/handlers/MiscHandler.php4
-rw-r--r--localwebsite/htdocs/index.php1
2 files changed, 5 insertions, 0 deletions
diff --git a/localwebsite/handlers/MiscHandler.php b/localwebsite/handlers/MiscHandler.php
index 772cd9b..1230b35 100644
--- a/localwebsite/handlers/MiscHandler.php
+++ b/localwebsite/handlers/MiscHandler.php
@@ -79,4 +79,8 @@ class MiscHandler extends RequestHandler
$this->tpl->render_page('cams.twig');
}
+ public function GET_debug() {
+ print_r($_SERVER);
+ }
+
} \ No newline at end of file
diff --git a/localwebsite/htdocs/index.php b/localwebsite/htdocs/index.php
index 65afc72..9ce8324 100644
--- a/localwebsite/htdocs/index.php
+++ b/localwebsite/htdocs/index.php
@@ -26,6 +26,7 @@ $router->add('sensors/', 'Misc sensors_page');
$router->add('pump/', 'Misc pump_page');
$router->add('phpinfo/', 'Misc phpinfo');
$router->add('cams/', 'Misc cams');
+$router->add('debug/', 'Misc debug');
$route = routerFind($router);