primevue-mirror/service/PhotoService.js

8 lines
182 B
JavaScript
Raw Normal View History

2020-05-15 08:08:53 +00:00
export default class PhotoService {
2022-09-14 14:26:41 +00:00
getImages() {
2022-12-09 09:02:20 +00:00
return fetch('/demo/data/photos.json')
2022-09-14 14:26:41 +00:00
.then((res) => res.json())
.then((d) => d.data);
2020-03-31 13:28:08 +00:00
}
}