comment
This commit is contained in:
parent
413c8d86d3
commit
6067bb1661
@ -19,6 +19,7 @@ use crate::app::Web3ProxyApp;
|
|||||||
pub async fn run(port: u16, proxy_app: Arc<Web3ProxyApp>) -> anyhow::Result<()> {
|
pub async fn run(port: u16, proxy_app: Arc<Web3ProxyApp>) -> anyhow::Result<()> {
|
||||||
// TODO: check auth (from authp?) here
|
// TODO: check auth (from authp?) here
|
||||||
// build our application with a route
|
// build our application with a route
|
||||||
|
// order most to least common
|
||||||
let app = Router::new()
|
let app = Router::new()
|
||||||
// `POST /` goes to `proxy_web3_rpc`
|
// `POST /` goes to `proxy_web3_rpc`
|
||||||
.route("/", post(http_proxy::proxy_web3_rpc))
|
.route("/", post(http_proxy::proxy_web3_rpc))
|
||||||
|
Loading…
Reference in New Issue
Block a user