From 411a2d3dc82c5b993040b95feb4b2380addb4a31 Mon Sep 17 00:00:00 2001 From: bitful-pannul Date: Fri, 20 Oct 2023 00:11:25 +0200 Subject: [PATCH] convert modules to new paths --- modules/chess/src/lib.rs | 8 ++++---- modules/homepage/src/home.html | 4 ++-- modules/http_proxy/src/http_proxy.html | 10 +++++----- modules/http_proxy/src/lib.rs | 24 ++++++++++++------------ 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/modules/chess/src/lib.rs b/modules/chess/src/lib.rs index 04e85b86..82cdf65e 100644 --- a/modules/chess/src/lib.rs +++ b/modules/chess/src/lib.rs @@ -190,7 +190,7 @@ impl Guest for Component { expects_response: None, ipc: Some(json!({ "BindPath": { - "path": "/chess", + "path": "/", "authenticated": true, "local_only": false } @@ -207,7 +207,7 @@ impl Guest for Component { expects_response: None, ipc: Some(json!({ "BindPath": { - "path": "/chess/games", + "path": "/games", "authenticated": true, "local_only": false } @@ -483,7 +483,7 @@ impl Guest for Component { default_headers.insert("Content-Type".to_string(), "text/html".to_string()); // Handle incoming http match path { - "/chess" => { + "/" => { send_http_response( 200, default_headers.clone(), @@ -497,7 +497,7 @@ impl Guest for Component { .to_vec(), ); } - "/chess/games" => { + "/games" => { match method { "GET" => { send_http_response( diff --git a/modules/homepage/src/home.html b/modules/homepage/src/home.html index 9b50fc16..c73fb4ea 100644 --- a/modules/homepage/src/home.html +++ b/modules/homepage/src/home.html @@ -196,8 +196,8 @@

Apps:

- Chess - HTTP Proxy + Chess + HTTP Proxy