Skip to content

Commit 336353c

Browse files
Foreshadow routing and catcher options in overview.
Resolves #1206. Co-authored-by: Jeb Rosen <jeb@jebrosen.com>
1 parent 74f15a7 commit 336353c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

site/guide/3-overview.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ fn world() -> &'static str { // <- request handler
7272
```
7373

7474
This declares the `world` route to match against the static path `"/world"` on
75-
incoming `GET` requests. The `world` route is simple, but additional route
76-
parameters are necessary when building more interesting applications. The
77-
[Requests](../requests) section describes the available options for
78-
constructing routes.
75+
incoming `GET` requests. Instead of `#[get]`, we could have used `#[post]` or
76+
`#[put]` for other HTTP methods, or `#[catch]` for serving [custom error
77+
pages](../requests/#error-catchers). Additionally, other route parameters may be
78+
necessary when building more interesting applications. The
79+
[Requests](../requests) chapter, which follows this one, has further details on
80+
routing and error handling.
7981

8082
## Mounting
8183

0 commit comments

Comments
 (0)