parent
29d9e3dadf
commit
860f55996c
@ -1,12 +1,13 @@
|
|||||||
var Backbone = require('backbone');
|
var Backbone = require('backbone');
|
||||||
var ProfileModel = require('./ProfileModel');
|
var ProfileModel = require('./ProfileModel');
|
||||||
|
|
||||||
module.exports = (function(){
|
var ProfileCollection = Backbone.Collection.extend({
|
||||||
var ProfileCollection = Backbone.Collection.extend({
|
model : ProfileModel,
|
||||||
model : ProfileModel,
|
url : window.NzbDrone.ApiRoot + '/profile'
|
||||||
url : window.NzbDrone.ApiRoot + '/profile'
|
});
|
||||||
});
|
|
||||||
var profiles = new ProfileCollection();
|
var profiles = new ProfileCollection();
|
||||||
profiles.fetch();
|
|
||||||
return profiles;
|
profiles.fetch();
|
||||||
}).call(this);
|
|
||||||
|
module.exports = profiles;
|
||||||
|
Loading…
Reference in new issue