Automations Endpoint Detail + Cron Endpoint
This commit is contained in:
@@ -20,8 +20,7 @@ class CronApi extends ApiController
|
||||
$this->response(['Value' => 'OK']);
|
||||
}
|
||||
|
||||
public function fetch()
|
||||
{
|
||||
public function fetch(){
|
||||
//Run Plugins
|
||||
$result = [];
|
||||
$dir = $_SERVER['DOCUMENT_ROOT'] . BASEDIR . 'app/plugins/';
|
||||
@@ -60,4 +59,9 @@ class CronApi extends ApiController
|
||||
//Print Result
|
||||
$this->response($result);
|
||||
}
|
||||
|
||||
public function automations(){
|
||||
AutomationManager:executeAll();
|
||||
$this->response(['Value' => 'OK']);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user