diff --git a/web/plates/js/settings.js b/web/plates/js/settings.js index a3e560eb..28947cba 100755 --- a/web/plates/js/settings.js +++ b/web/plates/js/settings.js @@ -108,4 +108,13 @@ function SettingsCtrl($rootScope, $scope, $state, $http) { setSettings(angular.toJson(newsettings)); } }; -}; \ No newline at end of file + + $scope.postShutdown = function () { + $http.post('/shutdown'); + }; + + $scope.postReboot = function () { + $http.post('/reboot'); + }; + +};