Skip to content
Snippets Groups Projects

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

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -72,7 +72,8 @@ pub(crate) async fn main() -> Result<(), Box<dyn Error>> {
"/encode-file/:file_path/:replace-blocks/:encoding-method/:encode_mat_k/:encode_mat_n/:powers_path",
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-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));
let router = router.with_state(Arc::new(app::AppState::new(cmd_sender)));
Loading