Detail endpoint start
This commit is contained in:
		@@ -25,6 +25,8 @@ $router->get('/api/devices', 'DevicesApi@default');
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
$router->post('/api/widgets/{widgetId}/run', 'WidgetApi@run');
 | 
					$router->post('/api/widgets/{widgetId}/run', 'WidgetApi@run');
 | 
				
			||||||
$router->post('/api/widgets/{widgetId}/check', 'WidgetApi@check');
 | 
					$router->post('/api/widgets/{widgetId}/check', 'WidgetApi@check');
 | 
				
			||||||
 | 
					$router->post('/api/widgets/{widgetId}/detail', 'WidgetApi@detail');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$router->any('/api/HA/auth', 'Oauth');
 | 
					$router->any('/api/HA/auth', 'Oauth');
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -27,4 +27,11 @@ class WidgetApi extends ApiController{
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		$this->response($response);
 | 
							$this->response($response);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public function detail($subDeviceId){
 | 
				
			||||||
 | 
							//$this->requireAuth();
 | 
				
			||||||
 | 
							$response = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							$this->response($response);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user