mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-25 22:36:59 -04:00
New: App health displayed in UI
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
'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;
|
||||
});
|
||||
Reference in New Issue
Block a user