mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-18 23:48:35 +02:00
17 lines
437 B
JavaScript
17 lines
437 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'backbone',
|
|
'Health/HealthModel',
|
|
'Mixins/backbone.signalr.mixin'
|
|
], function (Backbone, HealthModel) {
|
|
var Collection = Backbone.Collection.extend({
|
|
url : window.NzbDrone.ApiRoot + '/health',
|
|
model: HealthModel
|
|
});
|
|
|
|
var collection = new Collection().bindSignalR();
|
|
collection.fetch();
|
|
return collection;
|
|
});
|