Docs improvements (#37)

This commit is contained in:
David Pedersen
2021-07-22 15:00:33 +02:00
committed by GitHub
parent a658c94f23
commit 8faed8120f
11 changed files with 263 additions and 291 deletions
+2 -2
View File
@@ -10,10 +10,10 @@ async fn main() {
let app = axum::routing::nest(
"/static",
axum::service::get(ServeDir::new(".").handle_error(|error: std::io::Error| {
(
Ok::<_, std::convert::Infallible>((
StatusCode::INTERNAL_SERVER_ERROR,
format!("Unhandled interal error: {}", error),
)
))
})),
)
.layer(TraceLayer::new_for_http());