diff --git a/src/interface.rs b/src/interface.rs index a13f2da..cb46b45 100644 --- a/src/interface.rs +++ b/src/interface.rs @@ -60,6 +60,8 @@ pub fn create_web_router() -> Router { .route("/clear-logs", post(clear_logs_handler)) .route("/health", get(health_handler)) .route("/api-docs", get(api_docs_handler)) + .route("/terms", get(terms_handler)) + .route("/privacy", get(privacy_handler)) .route("/install.sh", get(install_script_handler)) // Archivos estáticos embebidos .route("/static/icon/logo_telco128.png", get(logo_telco_handler)) @@ -138,6 +140,14 @@ async fn health_handler() -> Html { Html(template.to_string()) } +async fn terms_handler() -> Html<&'static str> { + Html(include_str!("../web/terms.html")) +} + +async fn privacy_handler() -> Html<&'static str> { + Html(include_str!("../web/privacy.html")) +} + async fn install_script_handler() -> ([(String, String); 2], String) { let script = include_str!("../install-remote.sh"); ( diff --git a/web/logs.html b/web/logs.html index 4a8b6b1..fa4577c 100644 --- a/web/logs.html +++ b/web/logs.html @@ -238,11 +238,12 @@
@@ -259,11 +260,12 @@