Skip to content

Commit

Permalink
migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Jan 25, 2025
1 parent 9b1f612 commit 2af87b3
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,10 @@ <h2>Uploaded files</h2>
const body = JSON.stringify({ name, dataUrl });
uploadButton.disabled = true;
uploadButton.textContent = "Uploading...";
const response = await fetch(
"https://todepond-labuploadupload.web.val.run",
{
method: "POST",
body,
}
);
const response = await fetch("https://todepond-spagUpload.web.val.run", {
method: "POST",
body,
});
const data = await response.json();
if (data.ok) {
nameInput.value = "";
Expand All @@ -182,9 +179,7 @@ <h2>Uploaded files</h2>
);

async function fetchUploads() {
const response = await fetch(
"https://todepond-labuploadgetuploads.web.val.run"
);
const response = await fetch("https://todepond-spagList.web.val.run");
const data = await response.json();
return data.rows;
}
Expand Down Expand Up @@ -220,7 +215,7 @@ <h2>Uploaded files</h2>
previewContainer.style.backgroundColor = "rgb(55, 67, 98)";
previewContainer.style.border = "1px solid rgb(159, 174, 238)";

fetch(`https://tode.party?${upload.name}`).then(async (response) => {
fetch(`https://spag.cc?${upload.name}`).then(async (response) => {
if (!response.ok) {
return;
}
Expand Down Expand Up @@ -291,7 +286,7 @@ <h2>Uploaded files</h2>
deleteButton.disabled = true;
deleteButton.textContent = "Deleting...";
const response = await fetch(
`https://todepond-labuploaddelete.web.val.run`,
`https://todepond-spagDelete.web.val.run`,
{
method: "POST",
body: JSON.stringify({ name: upload.name }),
Expand Down

0 comments on commit 2af87b3

Please sign in to comment.