Explorar el Código

修改webapp存放路径

jevian ma(马作伟) hace 1 mes
padre
commit
c2cc24c0e7
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/main.rs

+ 2 - 2
src/main.rs

@@ -8,7 +8,7 @@ use tokio::sync::Mutex;
 use tower_http::cors::{Any, CorsLayer}; // 添加Any和CorsLayer的引用
 
 const WEBP: &str =
- "https://www.worldflying.cn/tools/4gplc/"
+ "https://www.worldflying.cn/tools/webapps/4gplc/"
 // "http://124.222.106.170/plc_ctrl"
 ;
 
@@ -246,4 +246,4 @@ async fn redirect_http_to_https(host:HeaderMap, uri: Uri) -> Result<Redirect, St
     } else {
         Err(StatusCode::BAD_REQUEST)
     }
-}
+}