Skip to content

Commit 0a924f3

Browse files
committed
IBX-8174: Update route definition and functional test
1 parent 931ada1 commit 0a924f3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/bundle/Resources/config/routing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,8 @@ ibexa.rest.trash.restore_trash_item:
721721
controller: Ibexa\Rest\Server\Controller\Trash::restoreItem
722722
condition: 'ibexa_get_media_type(request) === "RestoreTrashItemInput"'
723723
methods: [POST]
724+
options:
725+
options_route_suffix: '_RestoreTrashItemInput'
724726
requirements:
725727
trashItemId: \d+
726728

tests/bundle/Functional/HttpOptionsTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public function providerForTestHttpOptions(): array
9595
['/content/types/1/groups/1', ['DELETE']],
9696
['/content/trash', ['GET', 'DELETE']],
9797
['/content/trash/1', ['GET', 'DELETE', 'MOVE']],
98+
['/content/trash/1', ['POST'], 'RestoreTrashItemInput+json'],
9899
['/content/urlwildcards', ['GET', 'POST']],
99100
['/content/urlwildcards/1', ['GET', 'DELETE']],
100101
['/user/policies', ['GET']],

0 commit comments

Comments
 (0)