Add privacy policy and terms of use
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user