primevue-mirror/service/EventService.js

8 lines
169 B
JavaScript
Executable File

export default class EventService {
getEvents() {
return fetch('demo/data/events.json').then(res => res.json())
.then(d => d.data);
}
}