Files
dss.web/client/app/views/radio/radio.controller.js
Fergal Moran d2c529bafe Screw you git!
2015-12-01 19:50:20 +00:00

20 lines
699 B
JavaScript

'use strict';
angular.module('dssWebApp')
.controller('RadioAdminCtrl', function ($scope, $http, SERVER_CONFIG) {
$scope.mix = {};
$scope.shuffleTrack = function () {
$http.post(SERVER_CONFIG.apiUrl + '/_radio?action=shuffle')
.then(function (result) {
console.log("Shuffled", result);
});
};
$scope.playMix = function (something) {
console.log($scope.mix);
$http.post(SERVER_CONFIG.apiUrl + '/_radio?action=play&slug=' + $scope.mix.slug)
.then(function (restult) {
console.log("Shuffled", result);
});
};
});