mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
19 lines
395 B
JavaScript
19 lines
395 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'backbone',
|
|
'Profile/ProfileModel'
|
|
], function (Backbone, ProfileModel) {
|
|
|
|
var ProfileCollection = Backbone.Collection.extend({
|
|
model: ProfileModel,
|
|
url : window.NzbDrone.ApiRoot + '/profile'
|
|
});
|
|
|
|
var profiles = new ProfileCollection();
|
|
|
|
profiles.fetch();
|
|
|
|
return profiles;
|
|
});
|