1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-01-23 23:34:35 +01:00

Fix route in App::resource example

This commit is contained in:
Aleksey Ivanov 2018-04-17 16:01:34 +03:00
parent 30a36bed9d
commit 6a7b097bcf

View File

@ -314,7 +314,7 @@ where
/// ///
/// fn main() { /// fn main() {
/// let app = App::new() /// let app = App::new()
/// .resource("/test", |r| { /// .resource("/users/{userid}/{friend}", |r| {
/// r.get().f(|_| HttpResponse::Ok()); /// r.get().f(|_| HttpResponse::Ok());
/// r.head().f(|_| HttpResponse::MethodNotAllowed()); /// r.head().f(|_| HttpResponse::MethodNotAllowed());
/// }); /// });