Skip to content

Commit decc681

Browse files
Merge pull request #1558 from piotrgradzinski/patch-1
Documentation fix for subresource custom path.
2 parents 3ddeb9c + 51d2a9f commit decc681

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/subresources.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@ may use `bin/console debug:router`.
178178

179179
## Using Custom Paths
180180

181-
You can control the path of subresources with the `path` option of the `subresourceOperations` parameter:
181+
You can control the path of subresources with the `path` option of the `subresourceOperations` parameter.
182182

183183
```php
184184
<?php
185185
// api/src/Entity/Question.php
186186
187187
#[ApiResource(
188188
subresourceOperations: [
189-
'api_questions_answer_get_subresource' => [
189+
'answer_get_subresource' => [
190190
'method' => 'GET',
191191
'path' => '/questions/{id}/all-answers',
192192
],

0 commit comments

Comments
 (0)