Sha256: f5bb120c798dafde970832c69edcbcd463cc8febef774e0e00d68a0d91ed4e8d

Contents?: true

Size: 591 Bytes

Versions: 32

Compression:

Stored size: 591 Bytes

Contents

!(angular => {
  'use strict';

  function QueryResource(ResourceFactory, QueryRequestTransformers) {
    return ResourceFactory.make('/queries/:id.json', {id: '@id'},
      {
        update: {
          method: 'PUT',
          transformRequest: QueryRequestTransformers
        },
        create: {
          method: 'POST',
          transformRequest: QueryRequestTransformers
        }
      }
    );
  }

  QueryResource.$inject = ['ResourceFactory', 'QueryRequestTransformers'];
  angular.module('alephServices.queryResource', []).service('QueryResource', QueryResource);
}(angular));

Version data entries

32 entries across 16 versions & 1 rubygems

Version Path
aleph_analytics-0.0.5 app/assets/javascripts/angular/services/query/query_resource.js.es6
aleph_analytics-0.0.5 public/assets/angular/services/query/query_resource.js-b809fbfd1c379619fa07ef8e52509810.es6
aleph_analytics-0.0.4 app/assets/javascripts/angular/services/query/query_resource.js.es6
aleph_analytics-0.0.4 public/assets/angular/services/query/query_resource.js-b809fbfd1c379619fa07ef8e52509810.es6
aleph_analytics-0.0.3 public/assets/angular/services/query/query_resource.js-b809fbfd1c379619fa07ef8e52509810.es6
aleph_analytics-0.0.3 app/assets/javascripts/angular/services/query/query_resource.js.es6
aleph_analytics-0.0.2 public/assets/angular/services/query/query_resource.js-b809fbfd1c379619fa07ef8e52509810.es6
aleph_analytics-0.0.2 app/assets/javascripts/angular/services/query/query_resource.js.es6
aleph_analytics-0.0.1.alpha app/assets/javascripts/angular/services/query/query_resource.js.es6
aleph_analytics-0.0.1.alpha public/assets/angular/services/query/query_resource.js-b809fbfd1c379619fa07ef8e52509810.es6
aleph_analytics-0.0.0.alpha public/assets/angular/services/query/query_resource.js-b809fbfd1c379619fa07ef8e52509810.es6
aleph_analytics-0.0.0.alpha app/assets/javascripts/angular/services/query/query_resource.js.es6