index handled by another dapp
This commit is contained in:
parent
98e027b966
commit
c8722ed7eb
@ -4,13 +4,6 @@ use std::sync::Arc;
|
|||||||
|
|
||||||
use crate::app::Web3ProxyApp;
|
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
|
/// Health check page for load balancers to use
|
||||||
pub async fn health(app: Extension<Arc<Web3ProxyApp>>) -> impl IntoResponse {
|
pub async fn health(app: Extension<Arc<Web3ProxyApp>>) -> impl IntoResponse {
|
||||||
if app.get_balanced_rpcs().has_synced_rpcs() {
|
if app.get_balanced_rpcs().has_synced_rpcs() {
|
||||||
|
@ -21,8 +21,6 @@ pub async fn run(port: u16, proxy_app: Arc<Web3ProxyApp>) -> anyhow::Result<()>
|
|||||||
.route("/", post(http_proxy::proxy_web3_rpc))
|
.route("/", post(http_proxy::proxy_web3_rpc))
|
||||||
// `websocket /` goes to `proxy_web3_ws`
|
// `websocket /` goes to `proxy_web3_ws`
|
||||||
.route("/", get(ws_proxy::websocket_handler))
|
.route("/", get(ws_proxy::websocket_handler))
|
||||||
// `GET /index.html` goes to `index`
|
|
||||||
.route("/index.html", get(http::index))
|
|
||||||
// `GET /health` goes to `health`
|
// `GET /health` goes to `health`
|
||||||
.route("/health", get(http::health))
|
.route("/health", get(http::health))
|
||||||
// `GET /status` goes to `status`
|
// `GET /status` goes to `status`
|
||||||
|
Loading…
Reference in New Issue
Block a user