Added a page & table for viewing a list of installed tasks

This commit is contained in:
bwilliams committed 2023-05-31 16:00:22 +01:00
1 parent 2bed04cd18
commit e4db24ee8d
11 files changed
+440 -4

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
<?php
/*
* AVSDev UF Scheduler (https://avsdev.uk)
*
* @link https://git.avsdev.uk/avsdev/sprinkle-scheduler
* @license https://git.avsdev.uk/avsdev/sprinkle-scheduler/blob/master/LICENSE.md (LGPL-3.0 License)
*/
use UserFrosting\Sprinkle\Core\Util\NoCache;
/*
* Routes for schdeuled task listing.
*/
$app->group('/tasks', function () {
$this->get('', 'UserFrosting\Sprinkle\Scheduler\Controller\TaskController:pageList')
->setName('uri_permissions');
})->add('authGuard')->add(new NoCache());
$app->group('/api/tasks', function () {
$this->get('', 'UserFrosting\Sprinkle\Scheduler\Controller\TaskController:getList');
})->add('authGuard')->add(new NoCache());