Skip to content

Commit

Permalink
fix xml to specify a method
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu authored and weaverryan committed Aug 16, 2014
1 parent ef45eea commit 7d1ec51
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cookbook/routing/redirect_trailing_slash.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ system, as explained below:
<?xml version="1.0" encoding="UTF-8" ?>
<routes xmlns="http://symfony.com/schema/routing">
<route id="remove_trailing_slash" path="/{url}">
<route id="remove_trailing_slash" path="/{url}" methods="GET">
<default key="_controller">AcmeDemoBundle:Redirecting:removeTrailingSlash</default>
<requirement key="url">.*/$</requirement>
<method>GET</method>
</route>
</routes>
Expand Down

0 comments on commit 7d1ec51

Please sign in to comment.