check json format

This commit is contained in:
Nikolai Petukhov 2024-10-03 23:12:38 +03:00
parent 8e4cad4c85
commit ac6dffa129

View File

@ -21,6 +21,8 @@ export async function post(path, body) {
body: JSON.stringify(body)
});
console.log("Initial data from API:", res)
const data = JSON.parse(await res.text());
console.log("Data from API:", data)