Skip to content
Snippets Groups Projects

Write `get-file` and commands to get the list of blocks from another node

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -73,8 +73,8 @@ pub(crate) async fn main() -> Result<(), Box<dyn Error>> {
get(commands::create_cmd_encode_file),
)
.route("/get-block-from/:peer_id_base_58/:file_hash/:block_hash", get(commands::create_cmd_get_block_from))
.route("/get-file/:file_hash", get(commands::create_cmd_get_file))
.route("get-block-list/:file_hash/:output_filename:/powers_path", get(commands::create_cmd_get_block_list))
.route("/get-file/:file_hash/:output_filename:/powers_path", get(commands::create_cmd_get_file))
.route("get-block-list/:file_hash", get(commands::create_cmd_get_block_list))
.route("get-blocks-info-from/:peer_id_base_58/:file_hash", get(commands::create_cmd_get_blocks_info_from));
let router = router.with_state(Arc::new(app::AppState::new(cmd_sender)));
Loading