blob: a5b7e5cc1ccfd9c623302ee24c839a0cad616d46 [file] [log] [blame]
import {AppConfig} from '../../config/app.config';
export interface IXosResourceService {
getResource(): ng.resource.IResourceClass<any>;
}
export class SlicesRest implements IXosResourceService {
static $inject = ['$resource'];
private resource: angular.resource.IResourceClass<any>;
/** @ngInject */
constructor(
private $resource: ng.resource.IResourceService
) {
this.resource = this.$resource(`${AppConfig.apiEndpoint}/core/slices/`);
}
public getResource(): ng.resource.IResourceClass<ng.resource.IResource<any>> {
return this.resource;
}
}