Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9d0bde

Browse files
bug symfony#51102 [Webhook] Allow slash in webhook type (alamirault)
This PR was merged into the 6.3 branch. Discussion ---------- [Webhook] Allow slash in webhook type | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix symfony#50973 <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Allow `/` in webhook type. This allow to have route like`/webhook/foo/bar` Commits ------- d2ae524 [Webhook] Allow slash in webhook type
2 parents 3fa9711 + d2ae524 commit d9d0bde

File tree

1 file changed

+1
-0
lines changed
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/routing

1 file changed

+1
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/routing/webhook.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66

77
<route id="_webhook_controller" path="/{type}">
88
<default key="_controller">webhook.controller::handle</default>
9+
<requirement key="type">.+</requirement>
910
</route>
1011
</routes>

0 commit comments

Comments
 (0)