PHP_SMART_HOME_V3/app/api/CronApi.php

14 lines
338 B
PHP
Raw Normal View History

2020-07-21 08:29:26 +00:00
<?php
class CronApi extends ApiController {
2020-08-25 13:12:25 +00:00
2020-07-21 08:29:26 +00:00
public function clean(){
2020-07-21 08:34:15 +00:00
$logKeeper = new LogMaintainer();
2020-07-21 08:29:26 +00:00
$logKeeper->purge(LOGTIMOUT);
2020-07-28 07:02:46 +00:00
$this->response(['Value' => 'OK']);
2020-07-21 08:29:26 +00:00
}
2020-08-25 13:12:25 +00:00
public function fetch(){
echo (new VirtualDeviceManager)->fetch('');
$this->response(['Value' => 'OK']);
}
2020-07-21 08:29:26 +00:00
}