sonarr-repo-only/NzbDrone.Web/_backboneApp/Quality/qualityProfileCollection.js

14 lines
350 B
JavaScript
Raw Normal View History

define(['app', 'Quality/QualityProfileModel'], function () {
var qualityProfileCollection = Backbone.Collection.extend({
model:NzbDrone.Quality.QualityProfileModel,
url:NzbDrone.Constants.ApiRoot + '/qualityprofiles'
});
var profiles = new qualityProfileCollection();
profiles.fetch();
return profiles;
});