Events are now fetch from the API
This commit is contained in:
18
front/src/stores/EventStore.ts
Normal file
18
front/src/stores/EventStore.ts
Normal 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);
|
||||
}
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user