Skip to content

Commit fff5a65

Browse files
CardboardTurkeydavidB
authored andcommitted
fix: route in axum example
From axum 0.8 release note: > changing the path parameter syntax from /:single and /*many to > /{single} and /{*many}
1 parent f53cdec commit fff5a65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/axum-otlp/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fn app() -> Router {
2828
// build our application with a route
2929
Router::new()
3030
.route(
31-
"/proxy/:service/*path",
31+
"/proxy/{service}/{*path}",
3232
get(proxy_handler).post(proxy_handler),
3333
)
3434
.route("/", get(index)) // request processed inside span

0 commit comments

Comments
 (0)