PageRenderTime 54ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/dashboard/app/scripts/collections/cluster-collection.js

https://github.com/hnuzhoulin/calamari-clients
JavaScript | 13 lines | 8 code | 3 blank | 2 comment | 0 complexity | b7263a40accf36a40b5f51756599d41f MD5 | raw file
Possible License(s): Apache-2.0
  1. /*jshint -W106*/
  2. /*global define*/
  3. define(['underscore', 'backbone', 'models/cluster-model'], function(_, Backbone, clusterModel) {
  4. 'use strict';
  5. var ClusterCollection = Backbone.Collection.extend({
  6. url: '/api/v1/cluster',
  7. model: clusterModel
  8. });
  9. return ClusterCollection;
  10. });