mirror of
https://github.com/actix/actix-web.git
synced 2024-12-21 15:46:48 +00:00
Fix route in App::resource example
This commit is contained in:
parent
30a36bed9d
commit
6a7b097bcf
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ where
|
|||
///
|
||||
/// fn main() {
|
||||
/// let app = App::new()
|
||||
/// .resource("/test", |r| {
|
||||
/// .resource("/users/{userid}/{friend}", |r| {
|
||||
/// r.get().f(|_| HttpResponse::Ok());
|
||||
/// r.head().f(|_| HttpResponse::MethodNotAllowed());
|
||||
/// });
|
||||
|
|
Loading…
Reference in a new issue