Skip to content

Commit e5ff2df

Browse files
authored
🐛 fix wildcard route (#23)
1 parent a6c451b commit e5ff2df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/wsrx/src/cli/serve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn build_router(secret: Option<String>) -> axum::Router {
8181
Ok(next.run(req).await)
8282
},
8383
))
84-
.route("/traffic/*key", get(process_traffic).options(ping))
84+
.route("/traffic/{*key}", get(process_traffic).options(ping))
8585
.layer(
8686
TraceLayer::new_for_http()
8787
.make_span_with(|request: &Request<Body>| {

0 commit comments

Comments
 (0)