Write some more docs

This commit is contained in:
David Pedersen
2021-06-07 15:45:19 +02:00
parent 21c96e0aa1
commit d8b0153939
7 changed files with 358 additions and 19 deletions
+2 -2
View File
@@ -11,12 +11,12 @@ async fn main() {
let app = tower_web::routing::nest(
"/static",
ServeDir::new(".").handle_error(|error: std::io::Error| {
tower_web::service::get(ServeDir::new(".").handle_error(|error: std::io::Error| {
(
StatusCode::INTERNAL_SERVER_ERROR,
format!("Unhandled interal error: {}", error),
)
}),
})),
)
.layer(TraceLayer::new_for_http());