From 4a5041a65e6e2ae85cd8d4080c17f174b8bf7d05 Mon Sep 17 00:00:00 2001 From: Nikolai Petukhov Date: Thu, 3 Oct 2024 22:48:57 +0300 Subject: [PATCH] check json format --- src/backend/api.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/api.js b/src/backend/api.js index 8006f71..d9d5199 100644 --- a/src/backend/api.js +++ b/src/backend/api.js @@ -21,6 +21,8 @@ export async function post(path, body) { body: JSON.stringify(body) }); + console.log('Data from API:', res); + if (res.status === 200) { const data = await res.json(); console.log("Received post:", data);