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

This commit is contained in:
2023-05-31 16:00:22 +01:00
parent 2bed04cd18
commit e4db24ee8d
11 changed files with 440 additions and 4 deletions

22
routes/tasks.php Normal file
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());