This commit is contained in:
2022-01-23 23:22:04 +01:00
parent 7e2fbf93f9
commit eccc75aecf
5 changed files with 65 additions and 55 deletions

View File

@@ -478,11 +478,15 @@ final class SingleTaskController extends AbstractController
case 'json':
$collection = new Collection($tasks, $paginator);
return $this->json($collection, JsonResponse::HTTP_OK, [],
['groups' => ['read']]);
return $this->json(
$collection,
JsonResponse::HTTP_OK,
[],
['groups' => ['read']]
);
default:
throw new BadRequestException("format not supported: $format");
throw new BadRequestException("format not supported: {$format}");
}
}