Relocated services
This commit is contained in:
8
src/service/PhotoService.js
Normal file
8
src/service/PhotoService.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const contextPath = import.meta.env.BASE_URL;
|
||||
export default class PhotoService {
|
||||
getImages() {
|
||||
return fetch(contextPath + 'demo/data/photos.json')
|
||||
.then((res) => res.json())
|
||||
.then((d) => d.data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user