Files
sprinkle-worker/routes/jobs.php
Craig Williams 119e932154 Added pages to view the list of potential jobs
TODO: add ability to run a job & view queued jobs
2023-05-31 16:23:18 +01:00

23 lines
682 B
PHP

<?php
/*
* AVSDev UF Worker (https://avsdev.uk)
*
* @link https://git.avsdev.uk/avsdev/sprinkle-worker
* @license https://git.avsdev.uk/avsdev/sprinkle-worker/blob/master/LICENSE.md (LGPL-3.0 License)
*/
use UserFrosting\Sprinkle\Core\Util\NoCache;
/*
* Routes for available worker job listing.
*/
$app->group('/jobs', function () {
$this->get('', 'UserFrosting\Sprinkle\Worker\Controller\JobController:pageList')
->setName('uri_permissions');
})->add('authGuard')->add(new NoCache());
$app->group('/api/jobs', function () {
$this->get('', 'UserFrosting\Sprinkle\Worker\Controller\JobController:getList');
})->add('authGuard')->add(new NoCache());