mirror of
https://github.com/actix/actix-web.git
synced 2024-12-24 09:00:34 +00:00
update example
This commit is contained in:
parent
ab73da4a1a
commit
6b1a79fab8
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue