From 863e8c7ff9df090aad441797c5927335eacb3dc7 Mon Sep 17 00:00:00 2001 From: Celeste Date: Fri, 14 Jun 2024 14:51:06 +1000 Subject: [PATCH 1/2] minor doc update --- docs/router/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/router/configuration.md b/docs/router/configuration.md index fe262c47..22aff1ca 100644 --- a/docs/router/configuration.md +++ b/docs/router/configuration.md @@ -48,7 +48,7 @@ export const routes = [ ]; ``` -You can also mark a path param as optional by using the `?` suffix. For example, if you want to make the `userId` param optional, you would do so like this `'/user/:userId?'`. +You can also mark a path param as optional by using the `?` suffix. For example, if you want to make the `userId` param optional, you would do so like this `'/user/:userId?'`. This also applied to query parameters, e.g `query: ['foo', 'baz?']`. ## History From 91b3634996b0be2130065020d45e9c4245996de8 Mon Sep 17 00:00:00 2001 From: Celeste Date: Fri, 14 Jun 2024 14:52:28 +1000 Subject: [PATCH 2/2] minor doc update --- docs/router/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/router/configuration.md b/docs/router/configuration.md index 22aff1ca..3af154a2 100644 --- a/docs/router/configuration.md +++ b/docs/router/configuration.md @@ -48,7 +48,7 @@ export const routes = [ ]; ``` -You can also mark a path param as optional by using the `?` suffix. For example, if you want to make the `userId` param optional, you would do so like this `'/user/:userId?'`. This also applied to query parameters, e.g `query: ['foo', 'baz?']`. +You can also mark a path param as optional by using the `?` suffix. For example, if you want to make the `userId` param optional, you would do so like this `'/user/:userId?'`. This also applies to query parameters, e.g `query: ['foo', 'baz?']`. ## History