Lidarr/NzbDrone.Web/_backboneApp/AddSeries/RootFolders/RootFolderCollection.js

12 lines
305 B
JavaScript

define(['app', 'AddSeries/RootFolders/RootFolderModel'], function () {
var rootFolderCollection = Backbone.Collection.extend({
url: NzbDrone.Constants.ApiRoot + '/rootdir',
model: NzbDrone.AddSeries.RootFolders.RootFolderModel
});
return new rootFolderCollection();
});