primevue-mirror/service/CountryService.js

10 lines
275 B
JavaScript
Raw Normal View History

2019-01-28 11:49:18 +00:00
export default class CountryService {
getCountries() {
const runtimeConfig = useRuntimeConfig();
return fetch(runtimeConfig.public.contextPath + 'demo/data/countries.json')
2022-09-14 14:26:41 +00:00
.then((res) => res.json())
.then((d) => d.data);
2019-01-28 11:49:18 +00:00
}
2021-10-05 07:41:07 +00:00
}