This commit is contained in:
2018-11-15 19:45:13 +00:00
parent 3d748adbe1
commit 2491e9de8e
4 changed files with 146 additions and 0 deletions

View File

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