diff --git a/crates/ptth_relay/src/lib.rs b/crates/ptth_relay/src/lib.rs index d3fcaf9..a6da42e 100644 --- a/crates/ptth_relay/src/lib.rs +++ b/crates/ptth_relay/src/lib.rs @@ -354,6 +354,9 @@ async fn handle_all ( Ok (error_reply (StatusCode::BAD_REQUEST, "Bad URI format")?) } } + else if let Some (rest) = prefix_match ("/frontend/debug/", &path) { + Ok (error_reply (StatusCode::NOT_IMPLEMENTED, "Not implemented (yet)")?) + } else if path == "/" { let s = handlebars.render ("relay_root", &())?; Ok (ok_reply (s)?) diff --git a/handlebars/relay/debug.hbs b/handlebars/relay/debug.hbs new file mode 100644 index 0000000..c8c7080 --- /dev/null +++ b/handlebars/relay/debug.hbs @@ -0,0 +1,44 @@ + + + + + + +ptth_relay debugging tools + + + +

ptth_relay debugging tools

+ + + diff --git a/handlebars/relay/relay_root.html b/handlebars/relay/relay_root.html index 79c7d30..98391fa 100644 --- a/handlebars/relay/relay_root.html +++ b/handlebars/relay/relay_root.html @@ -27,6 +27,10 @@ Server list +
+Debugging tools +
+ diff --git a/todo.md b/todo.md index e793417..48af195 100644 --- a/todo.md +++ b/todo.md @@ -1,6 +1,7 @@ Interesting issues will get a unique ID with `dd if=/dev/urandom bs=5 count=1 | base32` +- Add endless virtual files for debugging - Fix long-running downloads restarting in the middle - [DMX6CO4G](issues/2021-01Jan/status-DMX6CO4G.md) fire-and-forget logs / key-value status data - ptth_tail