mirror of
https://github.com/actix/actix-web.git
synced 2024-12-21 07:36:43 +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() {
|
||||
Application::new()
|
||||
.default_resource(|r|
|
||||
.default_resource(|r| {
|
||||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue