Added methods for doing async posts for shutdown and reboot

pull/199/head
Brad Ward 2016-01-09 14:14:54 -06:00
rodzic 1420ad16e0
commit 48eb3f7c65
1 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -108,4 +108,13 @@ function SettingsCtrl($rootScope, $scope, $state, $http) {
setSettings(angular.toJson(newsettings)); setSettings(angular.toJson(newsettings));
} }
}; };
};
$scope.postShutdown = function () {
$http.post('/shutdown');
};
$scope.postReboot = function () {
$http.post('/reboot');
};
};