add trailing slash for some routes
This commit is contained in:
parent
221f2c1651
commit
bc5ffc2366
@ -49,10 +49,18 @@ pub async fn serve(port: u16, proxy_app: Arc<Web3ProxyApp>) -> anyhow::Result<()
|
|||||||
"/rpc/:rpc_key",
|
"/rpc/:rpc_key",
|
||||||
post(rpc_proxy_http::proxy_web3_rpc_with_key),
|
post(rpc_proxy_http::proxy_web3_rpc_with_key),
|
||||||
)
|
)
|
||||||
|
.route(
|
||||||
|
"/rpc/:rpc_key/",
|
||||||
|
post(rpc_proxy_http::proxy_web3_rpc_with_key),
|
||||||
|
)
|
||||||
.route(
|
.route(
|
||||||
"/rpc/:rpc_key",
|
"/rpc/:rpc_key",
|
||||||
get(rpc_proxy_ws::websocket_handler_with_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("/health", get(status::health))
|
||||||
.route("/user/login/:user_address", get(users::user_login_get))
|
.route("/user/login/:user_address", get(users::user_login_get))
|
||||||
.route(
|
.route(
|
||||||
|
Loading…
Reference in New Issue
Block a user