mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 01:57:21 +00:00
17 lines
425 B
JavaScript
17 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;
|
||
});
|