primevue-mirror/service/PhotoService.js

8 lines
182 B
JavaScript
Executable File

export default class PhotoService {
getImages() {
return fetch('/demo/data/photos.json')
.then((res) => res.json())
.then((d) => d.data);
}
}