This commit is contained in:
Bryan Stitt 2022-07-26 05:01:08 +00:00
parent 413c8d86d3
commit 6067bb1661

View File

@ -19,6 +19,7 @@ use crate::app::Web3ProxyApp;
pub async fn run(port: u16, proxy_app: Arc<Web3ProxyApp>) -> anyhow::Result<()> {
// TODO: check auth (from authp?) here
// build our application with a route
// order most to least common
let app = Router::new()
// `POST /` goes to `proxy_web3_rpc`
.route("/", post(http_proxy::proxy_web3_rpc))