Detail endpoint start

This commit is contained in:
JonatanRek 2020-05-26 21:47:36 +02:00
parent aef5b5116d
commit 804a5d1212
2 changed files with 9 additions and 0 deletions

View File

@ -25,6 +25,8 @@ $router->get('/api/devices', 'DevicesApi@default');
$router->post('/api/widgets/{widgetId}/run', 'WidgetApi@run');
$router->post('/api/widgets/{widgetId}/check', 'WidgetApi@check');
$router->post('/api/widgets/{widgetId}/detail', 'WidgetApi@detail');
$router->any('/api/HA/auth', 'Oauth');

View File

@ -27,4 +27,11 @@ class WidgetApi extends ApiController{
$this->response($response);
}
public function detail($subDeviceId){
//$this->requireAuth();
$response = null;
$this->response($response);
}
}