Skip to content

Commit c9662a5

Browse files
authored
fix: serve rpc over the root instead of /rpc (#19)
1 parent 61d40d9 commit c9662a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rpc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub async fn serve_axum(
9393

9494
let cors = CorsLayer::new().allow_methods([Method::GET, Method::POST]).allow_origin(cors);
9595

96-
let service = router.clone().into_axum("/rpc").layer(cors);
96+
let service = router.clone().into_axum("/").layer(cors);
9797

9898
let listener = tokio::net::TcpListener::bind(addrs).await?;
9999

0 commit comments

Comments
 (0)