Skip to content

Commit

Permalink
Add rewards to project api resource
Browse files Browse the repository at this point in the history
  • Loading branch information
subiabre committed Dec 11, 2024
1 parent 8e8bdf0 commit e1133b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ApiResource/Project/ProjectApiResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<int, RewardApiResource>
*/
public array $rewards;
}

0 comments on commit e1133b7

Please sign in to comment.