Skip to content

Commit

Permalink
fix: Expose /api/v0/node/stats. This is a required enpoint to test …
Browse files Browse the repository at this point in the history
…the voting app locally.
  • Loading branch information
coire1 committed Nov 24, 2023
1 parent f563100 commit 1eff3d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions valgrind/src/bin/valgrind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -82,6 +87,7 @@ async fn main() {
.or(reviews)
.or(settings)
.or(explorer)
.or(stats)
.or(vote)
.or(block0),
)
Expand Down

0 comments on commit 1eff3d7

Please sign in to comment.