Prowlarr/src/UI/Profile/ProfileCollection.js
2015-02-02 17:43:14 -08:00

12 lines
No EOL
362 B
JavaScript

var Backbone = require('backbone');
var ProfileModel = require('./ProfileModel');
module.exports = (function(){
var ProfileCollection = Backbone.Collection.extend({
model : ProfileModel,
url : window.NzbDrone.ApiRoot + '/profile'
});
var profiles = new ProfileCollection();
profiles.fetch();
return profiles;
}).call(this);