mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Routes From Index
This commit is contained in:
1 parent
28490f5d67
commit
36690e6899
2 files changed
+37
No files matched your search
@@ -6,4 +6,16 @@ $router->setDefault(function(){
|
||||
echo '404';
|
||||
});
|
||||
|
||||
//Pages
|
||||
$router->any('/', 'Home');
|
||||
$router->any('/login', 'Login');
|
||||
$router->any('/logout', 'Logout');
|
||||
$router->any('/automation', 'Automation');
|
||||
$router->any('/dashboard', 'Dashboard');
|
||||
$router->any('/setting', 'Setting');
|
||||
$router->any('/scene', 'Scene');
|
||||
$router->any('/ajax', 'Ajax');
|
||||
$router->any('/log', 'Log');
|
||||
$router->any('/rooms', 'Rooms');
|
||||
|
||||
$router->run($_SERVER['REQUEST_METHOD'], '/'.$_GET['url']);
|
||||
Reference in new issue
Block a user