Skip to content

Commit

Permalink
Merge pull request #314 from coire1/expose-node-stats
Browse files Browse the repository at this point in the history
fix: Expose `/api/v0/node/stats`.
  • Loading branch information
kukkok3 authored Nov 24, 2023
2 parents f563100 + 1eff3d7 commit 4d4df9c
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 4d4df9c

Please sign in to comment.