1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-20 08:31:09 +00:00

Merge pull request #184 from ivanovaleksey/patch-1

Fix route in App::resource example
This commit is contained in:
Nikolay Kim 2018-04-17 07:49:09 -07:00 committed by GitHub
commit 5f3a7a6a52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());
/// });