Skip to content

Commit

Permalink
Remove /clock.svg route (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Sep 28, 2022
1 parent ec79a14 commit 31955c3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ impl Server {
.route("/block/:hash", get(Self::block))
.route("/bounties", get(Self::bounties))
.route("/clock", get(Self::clock))
.route("/clock.svg", get(Self::clock))
.route("/faq", get(Self::faq))
.route("/favicon.ico", get(Self::favicon))
.route("/height", get(Self::height))
Expand Down Expand Up @@ -1092,11 +1091,6 @@ mod tests {
test_server.assert_response_regex("/clock", StatusCode::OK, ".*<text.*>1</text>.*");
}

#[test]
fn clock_is_served_with_svg_extension() {
TestServer::new().assert_response_regex("/clock.svg", StatusCode::OK, "<svg.*");
}

#[test]
fn block() {
let test_server = TestServer::new();
Expand Down

0 comments on commit 31955c3

Please sign in to comment.