katoikia-app/web-ui/web-react/src/service/EventService.js

10 lines
181 B
JavaScript

import axios from 'axios';
export class EventService {
getEvents() {
return axios.get('assets/demo/data/events.json')
.then(res => res.data.data);
}
}