index handled by another dapp

This commit is contained in:
Bryan Stitt 2022-06-29 18:24:16 +00:00
parent 98e027b966
commit c8722ed7eb
2 changed files with 0 additions and 9 deletions

View File

@ -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<Arc<Web3ProxyApp>>) -> impl IntoResponse {
if app.get_balanced_rpcs().has_synced_rpcs() {

View File

@ -21,8 +21,6 @@ pub async fn run(port: u16, proxy_app: Arc<Web3ProxyApp>) -> 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`