Skip to content

Commit 63c3a86

Browse files
committed
Merge remote-tracking branch 'origin/4.6'
# Conflicts: # phpstan-baseline.neon # src/bundle/Resources/config/routing.yml # src/lib/Server/Controller/Content.php
2 parents 5b89188 + c5f52a8 commit 63c3a86

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/bundle/Resources/config/routing.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,11 +1167,15 @@ ibexa.rest.load_url_alias:
11671167
path: /content/urlaliases/{urlAliasId}
11681168
controller: Ibexa\Rest\Server\Controller\URLAlias\URLAliasLoadByIdController::loadURLAlias
11691169
methods: [GET]
1170+
requirements:
1171+
urlAliasId: \d+-[a-f0-9]{32}
11701172

11711173
ibexa.rest.delete_url_alias:
11721174
path: /content/urlaliases/{urlAliasId}
11731175
controller: Ibexa\Rest\Server\Controller\URLAlias\URLAliasDeleteController::deleteURLAlias
11741176
methods: [DELETE]
1177+
requirements:
1178+
urlAliasId: \d+-[a-f0-9]{32}
11751179

11761180
# Services
11771181

tests/bundle/Functional/HttpOptionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function providerForTestHttpOptions(): array
135135
['/user/sessions/sess_123/refresh', ['POST']],
136136
['/content/urlaliases', ['GET', 'POST']],
137137
['/content/locations/1/2/urlaliases', ['GET']],
138-
['/content/urlaliases/12', ['GET', 'DELETE']],
138+
['/content/urlaliases/12-7ade12329f398e8e9ed984f2db6be2c4', ['GET', 'DELETE']],
139139
['/services/countries', ['GET']],
140140
];
141141
}

0 commit comments

Comments
 (0)