Skip to content

Commit

Permalink
chore: tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Mar 6, 2024
2 parents 5086bc2 + 4e4c084 commit 07890f4
Show file tree
Hide file tree
Showing 14 changed files with 112 additions and 252 deletions.
246 changes: 9 additions & 237 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions site/pages/concepts/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ app.frame('/', (c) => { // [!code focus]
})
```
:::tip[Tip]
A frame handler can also be asynchronous (ie. `async (c) => { ... }{:js}`).
:::
You can also define multiple routes by specifying alternative paths.
```tsx twoslash
Expand Down
4 changes: 4 additions & 0 deletions site/pages/concepts/routing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ app.frame('/bar', (c) => { // [!code focus]
})
```

:::tip[Tip]
A frame handler can also be asynchronous (ie. `async (c) => { ... }{:js}`).
:::

## Grouping

You can group routes by using the `app.route` method.
Expand Down
Loading

0 comments on commit 07890f4

Please sign in to comment.