Interesting Stuff
This commit is contained in:
@@ -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'] : ''));
|
||||
|
Reference in New Issue
Block a user