mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 05:41:50 +01:00
fix guide tests
This commit is contained in:
parent
6e3f598c50
commit
d7efbb516d
@ -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…
x
Reference in New Issue
Block a user