fix: make fetching work on any domain
This commit is contained in:
parent
3f0e2e4321
commit
b60c6cba86
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue