From eb2c097133da9d95b00b43ff91d4cd3733a7c55b Mon Sep 17 00:00:00 2001 From: Kyle Baran Date: Fri, 31 May 2024 14:19:33 -0700 Subject: [PATCH] Revert "Added documentation for new sub-route matching (#177)" This reverts commit adb6f2a50f6f9f709cac1e4494855fcc93000eb7. --- docs/manual/02_concepts/01_projects.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/manual/02_concepts/01_projects.md b/docs/manual/02_concepts/01_projects.md index 686f42227c55..2b3e52c91882 100644 --- a/docs/manual/02_concepts/01_projects.md +++ b/docs/manual/02_concepts/01_projects.md @@ -90,10 +90,7 @@ The `thumbnail` property is a string that must contain a URL to an image that wi ### Routes The `routes` property enables users to customise the various URL paths of their website utilizing dynamic loading of modules. -- Key: Represents the path _(with leading forward slash included)_ to the resource. - - If the route key ends with `/*`, then it will match all sub-paths of that route, but not the base route itself. e.g. `/test/*` will match `/test/test` and `/test/othertest`, but not `/test` - - If the route key ends with `*`, but the `*` is not preceded by a `/`, then it matches the base route and all sub-paths of that route. e.g. `/test*` will match `/test`, `/test/test`, and `/test/othertest` - - If the key does not end with either of the above, then it will just match the exact route. e.g. `/test` will match `/test` but not `/test/test` nor `/test/othertest` +- Key: Represents the path _(with leading forward slash included)_ to the resource, - Value: Represents a react component object which gets wrapped with `React.lazy()` - `props`: Passes options into the `react-dom-router.Route` component corresponding to the route.