Skip to content

Commit

Permalink
close channel and payments endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
elnosh committed Apr 11, 2024
1 parent f2e73b0 commit 48f3505
Show file tree
Hide file tree
Showing 3 changed files with 248 additions and 72 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ jobs:
cargo +nightly-2023-10-24 fmt -- --check
- name: Check docs
run: cargo +nightly-2023-10-24 doc
run: cargo +nightly-2023-10-24 doc --exclude mutiny-server --workspace

- name: Check docs server
run: cargo +nightly-2023-10-24 doc --target x86_64-unknown-linux-gnu -p mutiny-server

website:
name: Build WASM binary
Expand Down
3 changes: 3 additions & 0 deletions mutiny-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ async fn main() -> anyhow::Result<()> {
.route("/newaddress", get(routes::new_address))
.route("/sendtoaddress", post(routes::send_to_address))
.route("/openchannel", post(routes::open_channel))
.route("/closechannel", post(routes::close_channel))
.route("/createinvoice", post(routes::create_invoice))
.route("/payinvoice", post(routes::pay_invoice))
.route("/payments/incoming", get(routes::get_incoming_payments))
.route("/payment/:paymentHash", get(routes::get_payment))
.route("/balance", get(routes::get_balance))
.route("/getinfo", get(routes::get_node_info))
.fallback(fallback)
Expand Down
Loading

0 comments on commit 48f3505

Please sign in to comment.