blob: 2c10e10a73888d9466ebb4acbd57f799cc611d68 [file] [log] [blame]
import {AppConfig} from '../../config/app.config';
export class CoreRest {
/** @ngInject */
constructor(
private $http: angular.IHttpService,
private $q: angular.IQService
) {
}
public query(): Promise<any> {
const d = this.$q.defer();
this.$http.get(`${AppConfig.apiEndpoint}/core/`)
.then(res => d.resolve(res.data))
.catch(d.reject);
return d.promise;
}
}