This commit is contained in:
zadit biasa aja
2025-07-01 10:21:44 +00:00
parent 3ed645b013
commit 89bf8ec287
6 changed files with 281 additions and 277 deletions

View File

@@ -267,12 +267,16 @@ const CameraCanvas = () => {
const ReadImage = async (capturedImage) => {
try {
setLoading(true);
const token = localStorage.getItem("token");
let res = await fetch(
"https://bot.kediritechnopark.com/webhook/mastersnapper/read",
{
method: "POST",
headers: { "Content-Type": "application/json" },
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${token}`,
},
body: JSON.stringify({ image: capturedImage }),
}
);