1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-24 17:10:33 +00:00

update example

This commit is contained in:
Nikolay Kim 2018-03-18 16:27:34 -07:00
parent ab73da4a1a
commit 6b1a79fab8

View file

@ -124,7 +124,8 @@ fn main() {
} }
})) }))
.resource("/error.html", |r| r.f(|req| { .resource("/error.html", |r| r.f(|req| {
error::ErrorBadRequest(io::Error::new(io::ErrorKind::Other, "test")) error::InternalError::new(
io::Error::new(io::ErrorKind::Other, "test"), StatusCode::OK)
})) }))
// static files // static files
.handler("/static/", fs::StaticFiles::new("../static/", true)) .handler("/static/", fs::StaticFiles::new("../static/", true))