diff --git a/app/Http/Controllers/AutomationController.php b/app/Http/Controllers/AutomationController.php new file mode 100644 index 0000000..a6c3592 --- /dev/null +++ b/app/Http/Controllers/AutomationController.php @@ -0,0 +1,19 @@ +requestAsync('GET', $url); + $response = $promise->wait(); + + return $response->getBody()->getContents(); + } +} diff --git a/resources/js/views/Domotics/DomoticHome.vue b/resources/js/views/Automation/AutomaticLinksHome.vue similarity index 97% rename from resources/js/views/Domotics/DomoticHome.vue rename to resources/js/views/Automation/AutomaticLinksHome.vue index bfbdcc3..bb74ff6 100644 --- a/resources/js/views/Domotics/DomoticHome.vue +++ b/resources/js/views/Automation/AutomaticLinksHome.vue @@ -15,7 +15,7 @@ + + diff --git a/resources/js/views/Home.vue b/resources/js/views/Home.vue index ade0f08..023380b 100644 --- a/resources/js/views/Home.vue +++ b/resources/js/views/Home.vue @@ -4,7 +4,8 @@
- + +
@@ -12,12 +13,13 @@ diff --git a/routes/api.php b/routes/api.php index 47453da..d53eb87 100644 --- a/routes/api.php +++ b/routes/api.php @@ -30,6 +30,7 @@ Route::middleware('auth:api')->group(function () { // '/friend-request' => 'FriendRequestController', ]); + Route::get('/automation/home', 'AutomationController@home'); Route::post('/images/users/{users}', 'ImageController@users'); Route::post('/images/memos/{memo}', 'ImageController@memos'); Route::patch('/to-do-lists/{toDoList}/to-do/{toDo}/change', 'ToDoController@changeOrder');