This commit is contained in:
2019-01-04 00:04:37 +00:00
parent 39abb22c74
commit 17d44a4cef
2 changed files with 42 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
/* xeslint-disable */
import apiUtil from "./apiutil";
export default {
get(route) {
return new Promise(function(resolve, reject) {
fetch(apiUtil.APIUrl(route), apiUtil.fetchGetOptions())
.then(apiUtil.status)
.then(apiUtil.json)
.then(response => {
resolve(response);
})
.catch(function(error) {
reject(error);
});
});
}
};