mirror of
https://github.com/actix/actix-web.git
synced 2024-12-21 15:46:48 +00:00
fix guide tests
This commit is contained in:
parent
6e3f598c50
commit
d7efbb516d
1 changed files with 2 additions and 2 deletions
|
@ -543,9 +543,9 @@ use actix_web::httpcodes::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
Application::new()
|
Application::new()
|
||||||
.default_resource(|r|
|
.default_resource(|r| {
|
||||||
r.method(Method::GET).f(|req| HTTPNotFound);
|
r.method(Method::GET).f(|req| HTTPNotFound);
|
||||||
r.route().p(pred::Not(pred::Get()).f(|req| HTTPMethodNotAllowed);
|
r.route().p(pred::Not(pred::Get())).f(|req| HTTPMethodNotAllowed);
|
||||||
})
|
})
|
||||||
.finish();
|
.finish();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue