2018-12-31 15:41:35 +00:00
|
|
|
export default class EventService {
|
|
|
|
getEvents() {
|
2022-12-27 20:54:26 +00:00
|
|
|
const runtimeConfig = useRuntimeConfig();
|
|
|
|
|
|
|
|
return fetch(runtimeConfig.public.contextPath + 'demo/data/events.json')
|
2022-09-14 14:26:41 +00:00
|
|
|
.then((res) => res.json())
|
|
|
|
.then((d) => d.data);
|
2018-12-31 15:41:35 +00:00
|
|
|
}
|
2021-10-05 07:41:07 +00:00
|
|
|
}
|