Updated Events to GraphQL

This commit is contained in:
2026-01-30 14:34:44 +01:00
parent 6beffcb734
commit 9e34a12e23
6 changed files with 76 additions and 137 deletions

View File

@@ -1,5 +1,12 @@
import $ from "jquery";
import { ref } from "vue";
import { GraphQLClient } from 'graphql-request';
const graphqlClient = new GraphQLClient('http://localhost:3000/graphql', {
headers: {
// optional: Authorization: 'Bearer TOKEN'
},
});
const apiBaseUrl = import.meta.env.VITE_BACKEND_URL;
@@ -308,4 +315,5 @@ export default {
Spiel,
Formular,
Field,
graphqlClient
};