This commit is contained in:
xinatorus
2020-04-29 20:14:53 +02:00
parent 56891bda09
commit f588a293ed
4 changed files with 51 additions and 0 deletions

View File

@@ -23,5 +23,9 @@ $router->post('/api/login', 'AuthApi@login');
$router->post('/api/HA', 'GoogleHome@response');
// examples
$router->any('/api/example', 'ExampleApi@example');
$router->any('/example', 'ExampleController@index');
$router->any('/example/subpage', 'ExampleController@subpage');
$router->run($_SERVER['REQUEST_METHOD'], '/'.(isset($_GET['url']) ? $_GET['url'] : ''));