diff --git a/fastapi/applications.py b/fastapi/applications.py index 58d5b268a..cae292f37 100644 --- a/fastapi/applications.py +++ b/fastapi/applications.py @@ -823,7 +823,7 @@ class FastAPI(Starlette): One of them will result in a 307-redirect. It's important to understand that when `ignore_trailing_slash=True`, registering both `/auth` - and `/auth/` as different routes will be treated as if `/auth` was registered twice. + and `/auth/` as different routes will be treated as if `/auth` was registered twice. This means that only the first route registered will be used. Therefore, ensure your route setup does not conflict unintentionally. """ diff --git a/fastapi/routing.py b/fastapi/routing.py index cec5075e8..31db7ebef 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -844,7 +844,7 @@ class APIRouter(routing.Router): One of them will result in a 307-redirect. It's important to understand that when `ignore_trailing_slash=True`, registering both `/auth` - and `/auth/` as different routes will be treated as if `/auth` was registered twice. + and `/auth/` as different routes will be treated as if `/auth` was registered twice. This means that only the first route registered will be used. Therefore, ensure your route setup does not conflict unintentionally. """