Weather API Start

This commit is contained in:
2020-08-25 15:12:25 +02:00
parent 7f42d49634
commit 0efbda0583
4 changed files with 101 additions and 35 deletions

View File

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