Add privacy policy and terms of use

This commit is contained in:
Simon Bihel
2022-02-28 09:54:25 +00:00
parent 7e6de7fb2c
commit aa73f363bc
5 changed files with 32 additions and 4 deletions

View File

@@ -297,6 +297,17 @@ pub async fn main() {
},
),
)
.nest(
"/legal",
get_service(ServeDir::new("./static/legal")).handle_error(
|error: std::io::Error| async move {
(
StatusCode::INTERNAL_SERVER_ERROR,
format!("Unhandled internal error: {}", error),
)
},
),
)
.nest(
"/img",
get_service(ServeDir::new("./static/img")).handle_error(