File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ use ApiPlatform\Core\Annotation\ApiResource;
141
141
142
142
#[ApiResource(
143
143
subresourceOperations: [
144
- 'api_questions_answer_get_subresource': [
144
+ 'api_questions_answer_get_subresource' => [
145
145
'method' => 'GET',
146
146
'normalization_context': [
147
147
'groups': ['foobar'],
@@ -206,7 +206,7 @@ You can control the path of subresources with the `path` option of the `subresou
206
206
207
207
#[ApiResource(
208
208
subresourceOperations: [
209
- 'api_questions_answer_get_subresource': [
209
+ 'api_questions_answer_get_subresource' => [
210
210
'method' => 'GET',
211
211
'path' => '/questions/{id}/all-answers',
212
212
],
@@ -227,7 +227,7 @@ The `subresourceOperations` attribute also allows you to add an access control o
227
227
228
228
#[ApiResource(
229
229
subresourceOperations: [
230
- 'api_questions_answer_get_subresource': [
230
+ 'api_questions_answer_get_subresource' => [
231
231
'security' => "has_role('ROLE_AUTHENTICATED')",
232
232
],
233
233
],
You can’t perform that action at this time.
0 commit comments