Skip to content

Commit

Permalink
change mint function name to reflect route action
Browse files Browse the repository at this point in the history
  • Loading branch information
mubarak23 committed Nov 5, 2024
1 parent 3247ef1 commit f554f75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/cdk-axum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ 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,
post_melt_bolt11_quote,
Expand Down Expand Up @@ -147,7 +147,7 @@ pub async fn create_mint_router(mint: Arc<Mint>, 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),
Expand Down
2 changes: 1 addition & 1 deletion crates/cdk-axum/src/router_handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ pub async fn get_keysets(State(state): State<MintState>) -> Result<Json<KeysetRe
/// Request a quote for minting of new tokens
///
/// Request minting of new tokens. The mint responds with a Lightning invoice. This endpoint can be used for a Lightning invoice UX flow.
pub async fn get_mint_bolt11_quote(
pub async fn post_mint_bolt11_quote(
State(state): State<MintState>,
Json(payload): Json<MintQuoteBolt11Request>,
) -> Result<Json<MintQuoteBolt11Response>, Response> {
Expand Down

0 comments on commit f554f75

Please sign in to comment.