Weather API Start
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
<?php
|
||||
class CronApi extends ApiController {
|
||||
|
||||
public function clean(){
|
||||
$logKeeper = new LogMaintainer();
|
||||
$logKeeper->purge(LOGTIMOUT);
|
||||
$this->response(['Value' => 'OK']);
|
||||
}
|
||||
|
||||
public function fetch(){
|
||||
echo (new VirtualDeviceManager)->fetch('');
|
||||
$this->response(['Value' => 'OK']);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user