File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,12 @@ fn world() -> &'static str { // <- request handler
72
72
```
73
73
74
74
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.
79
81
80
82
## Mounting
81
83
You can’t perform that action at this time.
0 commit comments