aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.WebDashboard/ApiClient.js
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.WebDashboard/ApiClient.js')
-rw-r--r--MediaBrowser.WebDashboard/ApiClient.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/MediaBrowser.WebDashboard/ApiClient.js b/MediaBrowser.WebDashboard/ApiClient.js
index 3200f25c4..0ef566fbf 100644
--- a/MediaBrowser.WebDashboard/ApiClient.js
+++ b/MediaBrowser.WebDashboard/ApiClient.js
@@ -701,6 +701,19 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
};
/**
+ * Instructs the server to perform a shutdown.
+ */
+ self.shutdownServer = function () {
+
+ var url = self.getUrl("System/Shutdown");
+
+ return self.ajax({
+ type: "POST",
+ url: url
+ });
+ };
+
+ /**
* Gets information about an installable package
*/
self.getPackageInfo = function (name) {