Skip to content

Commit e431447

Browse files
committed
docs: move note up
1 parent 78b5156 commit e431447

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

user_guide_src/source/incoming/routing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,16 +320,16 @@ define an array of routes and then pass it as the first parameter to the ``map()
320320
Command-Line Only Routes
321321
========================
322322

323+
.. note:: It is recommended to use Spark Commands for CLI scripts instead of calling controllers via CLI.
324+
See the :doc:`../cli/cli_commands` page for detailed information.
325+
323326
You can create routes that work only from the command-line, and are inaccessible from the web browser, with the
324327
``cli()`` method. Any route created by any of the HTTP-verb-based
325328
route methods will also be inaccessible from the CLI, but routes created by the ``add()`` method will still be
326329
available from the command line:
327330

328331
.. literalinclude:: routing/032.php
329332

330-
.. note:: It is recommended to use Spark Commands for CLI scripts instead of calling controllers via CLI.
331-
See the :doc:`../cli/cli_commands` page for detailed information.
332-
333333
.. warning:: If you enable :ref:`auto-routing-legacy` and place the command file in **app/Controllers**,
334334
anyone could access the command with the help of Auto Routing (Legacy) via HTTP.
335335

0 commit comments

Comments
 (0)