reply comment on 360 working

This commit is contained in:
isUnknown 2024-12-20 12:36:21 +01:00
parent d727f1a1af
commit f790653fcf
8 changed files with 38 additions and 18 deletions

View file

@ -127,6 +127,8 @@ export const useApiStore = defineStore("api", () => {
body: JSON.stringify(comment),
};
console.log("Commentaire à enregistrer :", comment);
try {
const response = await fetch("/create-comment.json", headers);
if (!response.ok) {
@ -172,6 +174,8 @@ export const useApiStore = defineStore("api", () => {
body: JSON.stringify(comment),
};
console.log("Réponse à enregistrer :", comment);
try {
const response = await fetch("/reply-comment.json", headers);
if (!response.ok) {