1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-24 07:53:00 +01: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| {
error::ErrorBadRequest(io::Error::new(io::ErrorKind::Other, "test"))
error::InternalError::new(
io::Error::new(io::ErrorKind::Other, "test"), StatusCode::OK)
}))
// static files
.handler("/static/", fs::StaticFiles::new("../static/", true))