Skip to content

Commit

Permalink
"/download-files" -> "/download-files-mobile"
Browse files Browse the repository at this point in the history
  • Loading branch information
rakivo committed Dec 22, 2024
1 parent 98a88a5 commit dcdfca0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion back/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ async fn upload_mobile(mut multipart: Multipart, state: Data::<Server>) -> impl
HttpResponse::Ok().finish()
}

#[get("/download-files")]
#[get("/download-files-mobile")]
async fn download_files(state: web::Data::<Server>) -> impl Responder {
println!("[INFO] download files requested, zipping them up..");

Expand Down
2 changes: 1 addition & 1 deletion front/index-mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ document.getElementById("file-input").addEventListener("change", (e) => {
document
.getElementById("download-button")
.addEventListener("click", async (e) => {
fetch('/download-files')
fetch('/download-files-mobile')
.then(response => {
if (!response.ok) {
throw new Error('Failed to download ZIP file');
Expand Down

0 comments on commit dcdfca0

Please sign in to comment.