14 lines
		
	
	
		
			338 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			338 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?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']);
 | 
						|
    }
 | 
						|
} |