Can download ISO files
This commit is contained in:
@ -109,6 +109,10 @@ async fn main() -> std::io::Result<()> {
|
||||
web::post().to(iso_controller::upload_from_url),
|
||||
)
|
||||
.route("/api/iso/list", web::get().to(iso_controller::get_list))
|
||||
.route(
|
||||
"/api/iso/{filename}",
|
||||
web::get().to(iso_controller::download_file),
|
||||
)
|
||||
.route(
|
||||
"/api/iso/{filename}",
|
||||
web::delete().to(iso_controller::delete_file),
|
||||
|
Reference in New Issue
Block a user