Events are now fetch from the API

This commit is contained in:
Laurent
2025-03-18 13:48:37 +01:00
parent 0554c94946
commit a056a8a921
11 changed files with 129 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
import { defineStore } from 'pinia'
import {EventRequests} from "@/requests/EventRequests.ts";
const requests = new EventRequests();
export const eventStore = defineStore('datePicker', {
state: () => {
return {
event: Event
}
},
actions: {
fetch: (token : string) => {
requests.queryEvent(token);
}
},
})