From 7522a9e51e9e4ad0c2258911f23112960a2bbbed Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 8 Apr 2024 13:47:53 +0200 Subject: [PATCH] docs/backend-system: reword 404 handling in root router docs Signed-off-by: Patrik Oldsberg --- docs/backend-system/core-services/root-http-router.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/backend-system/core-services/root-http-router.md b/docs/backend-system/core-services/root-http-router.md index 84be48cf87..97666cae9d 100644 --- a/docs/backend-system/core-services/root-http-router.md +++ b/docs/backend-system/core-services/root-http-router.md @@ -77,4 +77,4 @@ backend.add( ); ``` -Note that requests towards `/api/*` will always fall through the `routes` if there is no matching plugin route, and never be caught by the configured `indexPath`. +Note that requests towards `/api/*` will never be handled by the `routes` handler unless a matching plugin exists, and will instead typically falling through to the `middleware.notFound()` handler. That is the case regardless of whether there is a configured `indexPath` or not.