Skip to content

Commit

Permalink
docs: update readme (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeCheneler authored Nov 21, 2024
1 parent c0c6017 commit d10ab76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ app.get("/one/two/three", (context) => {

### Parameters

Paths can contain parameters that will be passed to the context as strings:
Paths can contain parameters that will be available on `context.params.<name>`
as strings.:

```tsx
app.get("/user/:id", (context) => {
Expand All @@ -313,7 +314,7 @@ app.get("/public/*", (context) => {
});
```

The path portion captured by the wildcard is available on the context:
The path portion captured by the wildcard is available on `context.wildcard`.

```tsx
app.get("/public/*", (context) => {
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mage/server",
"version": "0.7.0",
"version": "0.7.1",
"license": "MIT",
"exports": "./mod.ts",
"tasks": {
Expand Down

0 comments on commit d10ab76

Please sign in to comment.