add trailing slash for some routes

This commit is contained in:
Bryan Stitt 2023-01-06 13:40:10 -08:00
parent 221f2c1651
commit bc5ffc2366

@ -49,10 +49,18 @@ pub async fn serve(port: u16, proxy_app: Arc<Web3ProxyApp>) -> 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(