Skip to content

Commit

Permalink
Use POST and name endpoint inboundquote
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfarrow committed Nov 18, 2022
1 parent 99320f3 commit 3d16959
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/inbound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ pub struct InboundResponse {
address: String,
}

#[get("/getquote?<nodeid>&<capacity>&<duration>&<refund_address>")]
pub async fn getquote(
#[get("/inboundquote?<nodeid>&<capacity>&<duration>&<refund_address>")]
pub async fn inboundquote(
nodeid: String,
capacity: u32,
duration: u32,
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ fn rocket() -> _ {
wildcard::wildcard,
board,
land,
inbound::getquote
inbound::inboundquote
],
)
.manage(Mutex::new(BattleConfig {
Expand Down

0 comments on commit 3d16959

Please sign in to comment.