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());