mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-10 04:52:42 +01:00
18 lines
425 B
JavaScript
18 lines
425 B
JavaScript
'use strict';
|
||
define(
|
||
[
|
||
'backbone',
|
||
'Commands/CommandModel',
|
||
'Mixins/backbone.signalr.mixin'
|
||
], function (Backbone, CommandModel) {
|
||
|
||
var CommandCollection = Backbone.Collection.extend({
|
||
url : window.ApiRoot + '/command',
|
||
model: CommandModel
|
||
});
|
||
|
||
var collection = new CommandCollection().bindSignalR();
|
||
|
||
return collection;
|
||
});
|