mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-27 17:52:56 +01:00
update example
This commit is contained in:
parent
ab73da4a1a
commit
6b1a79fab8
@ -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 New Issue
Block a user