From e1133b7dbc41253e96ed7a1add0a4832feaba372 Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Wed, 11 Dec 2024 12:22:53 +0100 Subject: [PATCH] Add rewards to project api resource --- src/ApiResource/Project/ProjectApiResource.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ApiResource/Project/ProjectApiResource.php b/src/ApiResource/Project/ProjectApiResource.php index f8cf273..235bb21 100644 --- a/src/ApiResource/Project/ProjectApiResource.php +++ b/src/ApiResource/Project/ProjectApiResource.php @@ -57,4 +57,11 @@ class ProjectApiResource #[API\ApiFilter(filterClass: SearchFilter::class, strategy: 'exact')] #[API\ApiProperty(securityPostDenormalize: 'is_granted("PROJECT_EDIT")')] public ProjectStatus $status = ProjectStatus::InEditing; + + /** + * List of the ProjectRewards this Project offers. + * + * @var array + */ + public array $rewards; }