23 lines
682 B
PHP
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());
|