mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Automation Endpoints Create
This commit is contained in:
1 parent
8b32ecc619
commit
a3eaf16fd6
3 files changed
+23
-1
No files matched your search
@@ -20,4 +20,15 @@ class AutomationsApi extends ApiController
|
||||
|
||||
$this->response($response);
|
||||
}
|
||||
|
||||
public function create()
|
||||
{
|
||||
//$this->requireAuth();
|
||||
$obj = $this->input;
|
||||
|
||||
$response = [];
|
||||
$response = AutomationManager::create($obj['name'],$obj['days'], $obj['tasks'], $obj['conditions']);
|
||||
|
||||
$this->response(['value'=>'OK']);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user