1
0
mirror of https://github.com/danbee/mpd-client synced 2025-03-04 08:39:09 +00:00
mpd-client/assets/js/application.js
2013-10-18 13:30:56 +01:00

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();