Automation Endpoints Create

This commit is contained in:
GamerClassN7
2021-02-23 12:41:34 +01:00
parent 8b32ecc619
commit a3eaf16fd6
3 changed files with 23 additions and 1 deletions

View File

@@ -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']);
}
}