diff --git a/crates/router/src/routes/api_keys.rs b/crates/router/src/routes/api_keys.rs index 47dd2273ab..6c7147da7e 100644 --- a/crates/router/src/routes/api_keys.rs +++ b/crates/router/src/routes/api_keys.rs @@ -65,7 +65,7 @@ pub async fn api_key_retrieve( req: HttpRequest, path: web::Path<(String, String)>, ) -> impl Responder { - let (key_id, _merchant_id) = path.into_inner(); + let (_merchant_id, key_id) = path.into_inner(); api::server_wrap( state.get_ref(), @@ -99,7 +99,7 @@ pub async fn api_key_update( path: web::Path<(String, String)>, json_payload: web::Json, ) -> impl Responder { - let (key_id, _merchant_id) = path.into_inner(); + let (_merchant_id, key_id) = path.into_inner(); let payload = json_payload.into_inner(); api::server_wrap( @@ -133,7 +133,7 @@ pub async fn api_key_revoke( req: HttpRequest, path: web::Path<(String, String)>, ) -> impl Responder { - let (key_id, _merchant_id) = path.into_inner(); + let (_merchant_id, key_id) = path.into_inner(); api::server_wrap( state.get_ref(),