Lidarr/NzbDrone.Backbone/AddSeries/RootFolders/RootFolderCollection.js

9 lines
305 B
JavaScript

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