Interesting Stuff

This commit is contained in:
JonatanRek
2020-04-29 16:10:33 +02:00
parent c774ad90c2
commit a1cfb21a81
4 changed files with 31 additions and 7 deletions

View File

@@ -18,7 +18,10 @@ $router->any('/ajax', 'Ajax');
$router->any('/log', 'Log');
$router->any('/rooms', 'Rooms');
$router->get('/api/devices', 'DevicesApi@getAllDevices');
$router->get('/api/login', 'AuthApi@login');
$router->post('/api/devices', 'DevicesApi@getAllDevices');
$router->post('/api/login', 'AuthApi@login');
$router->post('/api/HA', 'GoogleHome@response');
$router->run($_SERVER['REQUEST_METHOD'], '/'.(isset($_GET['url']) ? $_GET['url'] : ''));