Remove /photo endpoint

This commit is contained in:
Joscha 2025-03-01 22:44:09 +01:00
parent 2451bb3d76
commit d32be913fd
7 changed files with 34 additions and 113 deletions

View file

@ -137,9 +137,9 @@
canvas.toBlob((blob) => {
const form = new FormData();
form.append("image", blob);
form.append("title", new Date().toLocaleString());
form.append("caption", new Date().toLocaleString());
fetch("photo", { method: "POST", body: form }).catch((error) => {
fetch("image", { method: "POST", body: form }).catch((error) => {
console.error("Error uploading image:", error);
});
});