diff options
| author | stefan <stefan@hegedues.at> | 2018-09-12 19:26:21 +0200 |
|---|---|---|
| committer | stefan <stefan@hegedues.at> | 2018-09-12 19:26:21 +0200 |
| commit | 48facb797ed912e4ea6b04b17d1ff190ac2daac4 (patch) | |
| tree | 8dae77a31670a888d733484cb17dd4077d5444e8 /MediaBrowser.Api/System/SystemService.cs | |
| parent | c32d8656382a0eacb301692e0084377fc433ae9b (diff) | |
Update to 3.5.2 and .net core 2.1
Diffstat (limited to 'MediaBrowser.Api/System/SystemService.cs')
| -rw-r--r-- | MediaBrowser.Api/System/SystemService.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/MediaBrowser.Api/System/SystemService.cs b/MediaBrowser.Api/System/SystemService.cs index c0bbf70ea..d2880f735 100644 --- a/MediaBrowser.Api/System/SystemService.cs +++ b/MediaBrowser.Api/System/SystemService.cs @@ -35,6 +35,7 @@ namespace MediaBrowser.Api.System } [Route("/System/Ping", "POST")] + [Route("/System/Ping", "GET")] public class PingSystem : IReturnVoid { @@ -79,6 +80,13 @@ namespace MediaBrowser.Api.System public string Name { get; set; } } + [Route("/System/WakeOnLanInfo", "GET", Summary = "Gets wake on lan information")] + [Authenticated] + public class GetWakeOnLanInfo : IReturn<WakeOnLanInfo[]> + { + + } + /// <summary> /// Class SystemInfoService /// </summary> @@ -116,6 +124,13 @@ namespace MediaBrowser.Api.System return _appHost.Name; } + public object Get(GetWakeOnLanInfo request) + { + var result = _appHost.GetWakeOnLanInfo(); + + return ToOptimizedResult(result); + } + public object Get(GetServerLogs request) { IEnumerable<FileSystemMetadata> files; |
