Sha256: 2b2eafce1f56ba7050e2a3880ebb65e154b43b149c15e2161edb3eec81ed9491

Contents?: true

Size: 733 Bytes

Versions: 15

Compression:

Stored size: 733 Bytes

Contents

/**
 * @ngdoc factory
 * @name  Bastion.factory:BastionResource
 *
 * @requires BastionResource
 *
 * @description
 *   Base module that defines the Katello module namespace and includes any thirdparty
 *   modules used by the application.
 */
angular.module('Bastion').factory('BastionResource', ['$resource', function ($resource) {

    return function (url, paramDefaults, actions) {
        var defaultActions;

        defaultActions = {
            queryPaged: {method: 'GET', isArray: false},
            queryUnpaged: {method: 'GET', isArray: false, params: {'full_result': true}}
        };

        actions = angular.extend({}, defaultActions, actions);

        return $resource(url, paramDefaults, actions);
    };

}]);

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
bastion-3.3.1 app/assets/javascripts/bastion/bastion-resource.factory.js
bastion-3.3.0 app/assets/javascripts/bastion/bastion-resource.factory.js
bastion-3.2.2 app/assets/javascripts/bastion/bastion-resource.factory.js
bastion-3.2.1 app/assets/javascripts/bastion/bastion-resource.factory.js
bastion-3.2.0 app/assets/javascripts/bastion/bastion-resource.factory.js
bastion-3.1.0 app/assets/javascripts/bastion/bastion-resource.factory.js
bastion-3.0.1 app/assets/javascripts/bastion/bastion-resource.factory.js
bastion-3.0.0 app/assets/javascripts/bastion/bastion-resource.factory.js
bastion-2.1.0 app/assets/javascripts/bastion/bastion-resource.factory.js
bastion-2.0.4 app/assets/javascripts/bastion/bastion-resource.factory.js
bastion-2.0.3 app/assets/javascripts/bastion/bastion-resource.factory.js
bastion-2.0.2 app/assets/javascripts/bastion/bastion-resource.factory.js
bastion-2.0.1 app/assets/javascripts/bastion/bastion-resource.factory.js
bastion-2.0.0 app/assets/javascripts/bastion/bastion-resource.factory.js
bastion-1.0.2 app/assets/javascripts/bastion/bastion-resource.factory.js