Skip to content

Commit 7c84a30

Browse files
committed
docs: add warning about auto-routing
1 parent 59715c7 commit 7c84a30

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

user_guide_src/source/cli/cli.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ works exactly like a normal route definition:
8989

9090
For more information, see the :ref:`Routes <command-line-only-routes>` page.
9191

92+
.. warning:: If you don't disable auto-routing and place the command file in **app/Controllers**,
93+
anyone could access the command with the help of auto-routing via HTTP.
94+
9295
The CLI Library
9396
---------------
9497

user_guide_src/source/incoming/routing.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,9 @@ available from the command line:
348348
.. literalinclude:: routing/028.php
349349
:lines: 2-
350350

351+
.. warning:: If you don't disable auto-routing and place the command file in **app/Controllers**,
352+
anyone could access the command with the help of auto-routing via HTTP.
353+
351354
Global Options
352355
==============
353356

0 commit comments

Comments
 (0)