mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
implemented shutdown button
This commit is contained in:
parent
5124b240f0
commit
cb5da9caca
6 changed files with 31 additions and 4 deletions
13
ApiClient.js
13
ApiClient.js
|
@ -700,6 +700,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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue