Add Image API

This commit is contained in:
Moritz Utcke
2023-07-10 19:34:39 +05:00
parent 82db459b4e
commit de47be96d6
14 changed files with 251 additions and 75 deletions

View File

@@ -60,7 +60,7 @@
const dataURL = canvas.toDataURL("image/jpeg", 0.8);
fetch("/api/image", {
fetch("/api/image.json", {
method: "PUT",
body: JSON.stringify({
data: dataURL.split(';base64,')[1],