diff --git a/crates/cdk-axum/src/lib.rs b/crates/cdk-axum/src/lib.rs index 9083163b..09591440 100644 --- a/crates/cdk-axum/src/lib.rs +++ b/crates/cdk-axum/src/lib.rs @@ -117,10 +117,10 @@ pub struct MintState { get_keyset_pubkeys, get_keysets, get_mint_info, - get_mint_bolt11_quote, + post_mint_bolt11_quote, get_check_mint_bolt11_quote, post_mint_bolt11, - get_melt_bolt11_quote, + post_melt_bolt11_quote, get_check_melt_bolt11_quote, post_melt_bolt11, post_swap, @@ -147,13 +147,13 @@ pub async fn create_mint_router(mint: Arc, cache_ttl: u64, cache_tti: u64) .route("/keysets", get(get_keysets)) .route("/keys/:keyset_id", get(get_keyset_pubkeys)) .route("/swap", post(cache_post_swap)) - .route("/mint/quote/bolt11", post(get_mint_bolt11_quote)) + .route("/mint/quote/bolt11", post(post_mint_bolt11_quote)) .route( "/mint/quote/bolt11/:quote_id", get(get_check_mint_bolt11_quote), ) .route("/mint/bolt11", post(cache_post_mint_bolt11)) - .route("/melt/quote/bolt11", post(get_melt_bolt11_quote)) + .route("/melt/quote/bolt11", post(post_melt_bolt11_quote)) .route( "/melt/quote/bolt11/:quote_id", get(get_check_melt_bolt11_quote), diff --git a/crates/cdk-axum/src/router_handlers.rs b/crates/cdk-axum/src/router_handlers.rs index c4ba781a..48253cdf 100644 --- a/crates/cdk-axum/src/router_handlers.rs +++ b/crates/cdk-axum/src/router_handlers.rs @@ -130,7 +130,7 @@ pub async fn get_keysets(State(state): State) -> Result, Json(payload): Json, ) -> Result, Response> { @@ -216,7 +216,7 @@ pub async fn post_mint_bolt11( ) ))] /// Request a quote for melting tokens -pub async fn get_melt_bolt11_quote( +pub async fn post_melt_bolt11_quote( State(state): State, Json(payload): Json, ) -> Result, Response> {