Final things.

This commit is contained in:
James Cole
2021-03-21 11:06:08 +01:00
parent 206845575c
commit 97a687e40a
17 changed files with 305 additions and 67 deletions

View File

@@ -22,26 +22,19 @@
declare(strict_types=1);
namespace FireflyIII\Http\Controllers\System;
use FireflyIII\Support\Http\Controllers\CronRunner;
use Log;
/**
* Class CronController
*/
class CronController
{
use CronRunner;
/**
* @return string
*/
public function cron(): string
public function cron()
{
$results = [];
$results[] = $this->runRecurring();
$results[] = $this->runAutoBudget();
$results[] = $this->runTelemetry();
return implode("<br>\n", $results);
Log::error('The cron endpoint has moved to GET /api/v1/cron/[token]');
return response('The cron endpoint has moved to GET /api/v1/cron/[token]', 500);
}
}