From bc5ffc236656121f90083559ab80c4831cb54fe7 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 6 Jan 2023 13:40:10 -0800 Subject: [PATCH] add trailing slash for some routes --- web3_proxy/src/frontend/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web3_proxy/src/frontend/mod.rs b/web3_proxy/src/frontend/mod.rs index cd249f85..4d94367c 100644 --- a/web3_proxy/src/frontend/mod.rs +++ b/web3_proxy/src/frontend/mod.rs @@ -49,10 +49,18 @@ pub async fn serve(port: u16, proxy_app: Arc) -> anyhow::Result<() "/rpc/:rpc_key", post(rpc_proxy_http::proxy_web3_rpc_with_key), ) + .route( + "/rpc/:rpc_key/", + post(rpc_proxy_http::proxy_web3_rpc_with_key), + ) .route( "/rpc/:rpc_key", get(rpc_proxy_ws::websocket_handler_with_key), ) + .route( + "/rpc/:rpc_key/", + get(rpc_proxy_ws::websocket_handler_with_key), + ) .route("/health", get(status::health)) .route("/user/login/:user_address", get(users::user_login_get)) .route(