add /debug route

This commit is contained in:
Evgeny Zinoviev 2022-05-26 01:18:00 +03:00
parent 1a75ff3494
commit e20f0ef7c9
2 changed files with 5 additions and 0 deletions

View File

@ -79,4 +79,8 @@ class MiscHandler extends RequestHandler
$this->tpl->render_page('cams.twig'); $this->tpl->render_page('cams.twig');
} }
public function GET_debug() {
print_r($_SERVER);
}
} }

View File

@ -26,6 +26,7 @@ $router->add('sensors/', 'Misc sensors_page');
$router->add('pump/', 'Misc pump_page'); $router->add('pump/', 'Misc pump_page');
$router->add('phpinfo/', 'Misc phpinfo'); $router->add('phpinfo/', 'Misc phpinfo');
$router->add('cams/', 'Misc cams'); $router->add('cams/', 'Misc cams');
$router->add('debug/', 'Misc debug');
$route = routerFind($router); $route = routerFind($router);