Added a page & table for viewing a list of installed tasks
This commit is contained in:
22
routes/tasks.php
Normal file
22
routes/tasks.php
Normal 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());
|
||||
Reference in New Issue
Block a user