Skip to content

Commit b543a84

Browse files
committed
chore: update wildcard path syntax for Axum 0.8 (*path → {*path})
Signed-off-by: Xin Liu <[email protected]>
1 parent b6d6e7c commit b543a84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ async fn main() -> anyhow::Result<()> {
8787
// WebSocket proxy: /ws/{session_id}
8888
.route("/ws/{session_id}", get(websocket_handler))
8989
.with_state(ws_state)
90-
// HTTP/HTTPS proxy: /{session_id}/*path
91-
.route("/{session_id}/*path", any(http_proxy_handler))
90+
// HTTP/HTTPS proxy: /{session_id}/{*path}
91+
.route("/{session_id}/{*path}", any(http_proxy_handler))
9292
.with_state(http_state)
9393
// Add request tracing
9494
.layer(TraceLayer::new_for_http());

0 commit comments

Comments
 (0)