mirror of
https://github.com/danbee/mpd-client
synced 2025-03-04 08:39:09 +00:00
20 lines
416 B
JavaScript
20 lines
416 B
JavaScript
var App = Ember.Application.create();
|
|
|
|
App.QueueRoute = Ember.Route.extend({
|
|
model: function() {
|
|
return Ember.$.getJSON('/api/queue');
|
|
}
|
|
});
|
|
|
|
App.QueueController = Ember.ArrayController.extend();
|
|
|
|
App.TransportController = Ember.Controller.extend({
|
|
actions: {
|
|
sendControl: function(control) {
|
|
Ember.$.ajax('/api/control/' + control, { type: 'PUT' });
|
|
}
|
|
}
|
|
});
|
|
|
|
App.Song = DS.Model.extend();
|