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