diff --git a/index.mjs b/index.mjs index 6ccffab..b5d95b0 100644 --- a/index.mjs +++ b/index.mjs @@ -47,7 +47,7 @@ const server = Server.configure({ }); } - fetch('https://core.discours.io/graphql', { + fetch('https://core.discours.io/', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ @@ -67,7 +67,7 @@ const server = Server.configure({ .then(data => { const { id: author_id } = data.get_author if (author_id) { - fetch('https://core.discours.io/graphql', { + fetch('https://core.discours.io/', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({