fix: make fetching work on any domain

This commit is contained in:
neri 2023-07-27 19:11:25 +02:00
parent 3f0e2e4321
commit b60c6cba86
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
// https://git.ctdo.de/ctdo/wikijs-metabot/ // https://git.ctdo.de/ctdo/wikijs-metabot/
async function graphql(query) { async function graphql(query) {
const res = await fetch('https://wiki.ctdo.de/graphql', { const res = await fetch('/graphql', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',