Remove /photo endpoint
This commit is contained in:
parent
2451bb3d76
commit
d32be913fd
7 changed files with 34 additions and 113 deletions
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue