sonarr-repo-only/UI/Quality/QualityProfileCollection.js

19 lines
432 B
JavaScript
Raw Normal View History

2013-09-11 23:33:34 +00:00
'use strict';
define(
[
'backbone',
'Quality/QualityProfileModel'
], function (Backbone, QualityProfileModel) {
var QualityProfileCollection = Backbone.Collection.extend({
model: QualityProfileModel,
url : window.ApiRoot + '/qualityprofiles'
});
var profiles = new QualityProfileCollection();
profiles.fetch();
return profiles;
});