File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,20 +55,20 @@ new Elysia()
55
55
## Path Parameters
56
56
Path parameters can retrieve data from URL.
57
57
58
- For example, getting an user id from path like many social media is when you need a path parameters.
58
+ For example, getting a user id from path like many social media is when you need a path parameters.
59
59
60
60
``` typescript
61
61
new Elysia ()
62
62
.get (' /id/:id' , ({ params : { id } }) => getUserById (id ))
63
63
.listen (8080 )
64
64
```
65
65
66
- Path parameters is a variable in a path.
66
+ Path parameters are a variable in a path.
67
67
68
- When the pattern match , the path you named will become available in ` context.params ` , and you can retrieve its value.
68
+ When the pattern matches , the path you named will become available in ` context.params ` , and you can retrieve its value.
69
69
70
70
## Wildcard
71
- Sometime path parameters is not enough.
71
+ Sometimes path parameters are not enough.
72
72
73
73
Matching anything after some pattern is required, and you can't define them all or its too redundant.
74
74
You can’t perform that action at this time.
0 commit comments