Skip to content

Commit 3c4a341

Browse files
committed
docs: move Warning up
To make stand out.
1 parent 0578fdc commit 3c4a341

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

user_guide_src/source/incoming/routing.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,16 +310,16 @@ This has the added benefit of making the views more readable, too.
310310
Routes with any HTTP verbs
311311
==========================
312312

313-
It is possible to define a route with any HTTP verbs.
314-
You can use the ``add()`` method:
315-
316-
.. literalinclude:: routing/031.php
317-
318313
.. warning:: While the ``add()`` method seems to be convenient, it is recommended to always use the HTTP-verb-based
319314
routes, described above, as it is more secure. If you use the :doc:`CSRF protection </libraries/security>`, it does not protect **GET**
320315
requests. If the URI specified in the ``add()`` method is accessible by the GET method, the CSRF protection
321316
will not work.
322317

318+
It is possible to define a route with any HTTP verbs.
319+
You can use the ``add()`` method:
320+
321+
.. literalinclude:: routing/031.php
322+
323323
.. note:: Using the HTTP-verb-based routes will also provide a slight performance increase, since
324324
only routes that match the current request method are stored, resulting in fewer routes to scan through
325325
when trying to find a match.

0 commit comments

Comments
 (0)