Sha256: 2d1dd843fe2b894871fba137cc3d3ab3aaeb6199e517f13f8cc926ed3879fde5
Contents?: true
Size: 1.07 KB
Versions: 41
Compression:
Stored size: 1.07 KB
Contents
/** * @ngdoc service * @name Bastion.hosts.factory:Host * * @requires BastionResource * * @description * Provides a BastionResource for one or more hosts. */ angular.module('Bastion.hosts').factory('Host', ['BastionResource', function (BastionResource) { var resource = BastionResource('api/v2/hosts/:id/:action', {id: '@id'}, { postIndex: {method: 'POST', params: {action: 'post_index'}}, update: {method: 'PUT'}, updateHostCollections: {method: 'PUT', params: {action: 'host_collections'}}, autocomplete: {method: 'GET', isArray: true, params: {id: 'auto_complete_search'}} }); resource.prototype.hasContent = function () { return angular.isDefined(this.content_facet_attributes) && angular.isDefined(this.content_facet_attributes.uuid); }; resource.prototype.hasSubscription = function () { return angular.isDefined(this.subscription_facet_attributes) && angular.isDefined(this.subscription_facet_attributes.uuid); }; return resource; }] );
Version data entries
41 entries across 41 versions & 1 rubygems