public function getIndexesAction(Request $request, ParamFetcherInterface $paramFetcher)
{
if (!$this->isGranted('VIEW', new Index())) {
throw new AccessDeniedException();
}
$offset = $paramFetcher->get('offset');
$offset = null === $offset ? 0 : $offset;
$limit = $paramFetcher->get('limit');
return $this->container->get('ojs_api.index.handler')->all($limit, $offset);
}