Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit d77e5a4

Browse files
committed
close channel and payments endpoints
1 parent 8728329 commit d77e5a4

File tree

3 files changed

+248
-72
lines changed

3 files changed

+248
-72
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ jobs:
3434
cargo +nightly-2023-10-24 fmt -- --check
3535
3636
- name: Check docs
37-
run: cargo +nightly-2023-10-24 doc
37+
run: cargo +nightly-2023-10-24 doc --exclude mutiny-server --workspace
38+
39+
- name: Check docs server
40+
run: cargo +nightly-2023-10-24 doc --target x86_64-unknown-linux-gnu -p mutiny-server
3841

3942
website:
4043
name: Build WASM binary

mutiny-server/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@ async fn main() -> anyhow::Result<()> {
7171
.route("/newaddress", get(routes::new_address))
7272
.route("/sendtoaddress", post(routes::send_to_address))
7373
.route("/openchannel", post(routes::open_channel))
74+
.route("/closechannel", post(routes::close_channel))
7475
.route("/createinvoice", post(routes::create_invoice))
7576
.route("/payinvoice", post(routes::pay_invoice))
77+
.route("/payments/incoming", get(routes::get_incoming_payments))
78+
.route("/payment/:paymentHash", get(routes::get_payment))
7679
.route("/balance", get(routes::get_balance))
7780
.route("/getinfo", get(routes::get_node_info))
7881
.fallback(fallback)

0 commit comments

Comments
 (0)