Skip to content

Commit 7d1ec51

Browse files
Baptouuuuweaverryan
authored andcommitted
fix xml to specify a method
1 parent ef45eea commit 7d1ec51

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cookbook/routing/redirect_trailing_slash.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ system, as explained below:
5050
5151
<?xml version="1.0" encoding="UTF-8" ?>
5252
<routes xmlns="http://symfony.com/schema/routing">
53-
<route id="remove_trailing_slash" path="/{url}">
53+
<route id="remove_trailing_slash" path="/{url}" methods="GET">
5454
<default key="_controller">AcmeDemoBundle:Redirecting:removeTrailingSlash</default>
5555
<requirement key="url">.*/$</requirement>
56-
<method>GET</method>
5756
</route>
5857
</routes>
5958

0 commit comments

Comments
 (0)