Skip to content

Commit 67f48dc

Browse files
committed
docs: add Warning to map()
1 parent 3c4a341 commit 67f48dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

user_guide_src/source/incoming/routing.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ You can use the ``add()`` method:
327327
Mapping Multiple Routes
328328
=======================
329329

330+
.. warning:: The ``map()`` method is not recommended as well as ``add()``
331+
because it calls ``add()`` internally.
332+
330333
While the ``add()`` method is simple to use, it is often handier to work with multiple routes at once, using
331334
the ``map()`` method. Instead of calling the ``add()`` method for each route that you need to add, you can
332335
define an array of routes and then pass it as the first parameter to the ``map()`` method:

0 commit comments

Comments
 (0)