Skip to content

Commit

Permalink
[BUGFIX] Show allowed HTTP methods for backend routes
Browse files Browse the repository at this point in the history
Since #93455 it's possible to restrict backend routes to
a limited set of HTTP methods. This route property is now
also displayed in the corresponding "Backend Routes"
configuration module provider.

Resolves: #93623
Releases: master
Change-Id: Ibc2bff74894a8d5f0be571d290706909dd98c009
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68163
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
  • Loading branch information
o-ba authored and georgringer committed Mar 2, 2021
1 parent b12f37a commit ab6540f
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -35,7 +35,8 @@ public function getConfiguration(): array
foreach ($this->router->getRoutes() as $identifier => $route) {
$configurationArray[$identifier] = [
'path' => $route->getPath(),
'options' => $route->getOptions()
'options' => $route->getOptions(),
'methods' => implode(',', $route->getMethods()) ?: '*'
];
}
ArrayUtility::naturalKeySortRecursive($configurationArray);
Expand Down

0 comments on commit ab6540f

Please sign in to comment.