From c8722ed7eb8d9bb5b868444ea0e8ba8bb77ccf98 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 29 Jun 2022 18:24:16 +0000 Subject: [PATCH] index handled by another dapp --- web3-proxy/src/frontend/http.rs | 7 ------- web3-proxy/src/frontend/mod.rs | 2 -- 2 files changed, 9 deletions(-) diff --git a/web3-proxy/src/frontend/http.rs b/web3-proxy/src/frontend/http.rs index 5e2c50ee..2ae951ee 100644 --- a/web3-proxy/src/frontend/http.rs +++ b/web3-proxy/src/frontend/http.rs @@ -4,13 +4,6 @@ use std::sync::Arc; use crate::app::Web3ProxyApp; -/// a page for configuring your wallet with all the rpcs -/// TODO: check auth (from authp?) here -/// TODO: return actual html -pub async fn index() -> impl IntoResponse { - "Hello, World!" -} - /// Health check page for load balancers to use pub async fn health(app: Extension>) -> impl IntoResponse { if app.get_balanced_rpcs().has_synced_rpcs() { diff --git a/web3-proxy/src/frontend/mod.rs b/web3-proxy/src/frontend/mod.rs index 2e91310a..36cebcf7 100644 --- a/web3-proxy/src/frontend/mod.rs +++ b/web3-proxy/src/frontend/mod.rs @@ -21,8 +21,6 @@ pub async fn run(port: u16, proxy_app: Arc) -> anyhow::Result<()> .route("/", post(http_proxy::proxy_web3_rpc)) // `websocket /` goes to `proxy_web3_ws` .route("/", get(ws_proxy::websocket_handler)) - // `GET /index.html` goes to `index` - .route("/index.html", get(http::index)) // `GET /health` goes to `health` .route("/health", get(http::health)) // `GET /status` goes to `status`