From 804a5d12120fc932db8591790a157278473460c4 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Tue, 26 May 2020 21:47:36 +0200 Subject: [PATCH] Detail endpoint start --- app/Routes.php | 2 ++ app/api/WidgetApi.php | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/app/Routes.php b/app/Routes.php index 2834359..1b4446c 100644 --- a/app/Routes.php +++ b/app/Routes.php @@ -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'); diff --git a/app/api/WidgetApi.php b/app/api/WidgetApi.php index 5d2c576..0083753 100644 --- a/app/api/WidgetApi.php +++ b/app/api/WidgetApi.php @@ -27,4 +27,11 @@ class WidgetApi extends ApiController{ $this->response($response); } + + public function detail($subDeviceId){ + //$this->requireAuth(); + $response = null; + + $this->response($response); + } }