From b63f4cd972ace95cca9954791653c9a1599e6bde Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Tue, 14 Jan 2025 22:00:32 -0800 Subject: [PATCH] axum update :param to {param} syntax --- bin/core/src/listener/router.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/core/src/listener/router.rs b/bin/core/src/listener/router.rs index 491b69bf9..a32ef3dd0 100644 --- a/bin/core/src/listener/router.rs +++ b/bin/core/src/listener/router.rs @@ -45,7 +45,7 @@ fn default_branch() -> String { pub fn router() -> Router { Router::new() .route( - "/build/:id", + "/build/{id}", post( |Path(Id { id }), headers: HeaderMap, body: String| async move { let build = @@ -71,7 +71,7 @@ pub fn router() -> Router { ), ) .route( - "/repo/:id/:option", + "/repo/{id}/{option}", post( |Path(IdAndOption:: { id, option }), headers: HeaderMap, body: String| async move { let repo = @@ -97,7 +97,7 @@ pub fn router() -> Router { ), ) .route( - "/stack/:id/:option", + "/stack/{id}/{option}", post( |Path(IdAndOption:: { id, option }), headers: HeaderMap, body: String| async move { let stack = @@ -123,7 +123,7 @@ pub fn router() -> Router { ), ) .route( - "/sync/:id/:option", + "/sync/{id}/{option}", post( |Path(IdAndOption:: { id, option }), headers: HeaderMap, body: String| async move { let sync = @@ -149,7 +149,7 @@ pub fn router() -> Router { ), ) .route( - "/procedure/:id/:branch", + "/procedure/{id}/{branch}", post( |Path(IdAndBranch { id, branch }), headers: HeaderMap, body: String| async move { let procedure = @@ -175,7 +175,7 @@ pub fn router() -> Router { ), ) .route( - "/action/:id/:branch", + "/action/{id}/{branch}", post( |Path(IdAndBranch { id, branch }), headers: HeaderMap, body: String| async move { let action =