From 1eff3d7dc8c1889889664cbbd0e10c42ea983b70 Mon Sep 17 00:00:00 2001 From: Lucio Baglione Date: Fri, 24 Nov 2023 10:56:21 +0100 Subject: [PATCH] fix: Expose `/api/v0/node/stats`. This is a required enpoint to test the voting app locally. --- valgrind/src/bin/valgrind.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/valgrind/src/bin/valgrind.rs b/valgrind/src/bin/valgrind.rs index d68f9786..4ba2ab9c 100644 --- a/valgrind/src/bin/valgrind.rs +++ b/valgrind/src/bin/valgrind.rs @@ -62,6 +62,11 @@ async fn main() { server_stub.http_node_address(), )); + let stats = warp::path!("node" / "stats").and(reverse_proxy_filter( + "".to_string(), + server_stub.http_node_address(), + )); + let vote = warp::path!("vote" / "active" / ..).and(reverse_proxy_filter( "".to_string(), server_stub.http_node_address(), @@ -82,6 +87,7 @@ async fn main() { .or(reviews) .or(settings) .or(explorer) + .or(stats) .or(vote) .or(block0), )