Changed the fingerprinting code for Kavita+. Optimized System tab to be way faster. (#2140)

This commit is contained in:
Joe Milazzo 2023-07-17 18:33:45 -05:00 committed by GitHub
parent 43cc771838
commit 5f505eaf6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 84 additions and 34 deletions

View file

@ -124,6 +124,17 @@ public class ServerController : BaseApiController
return Ok(await _statsService.GetServerInfo());
}
/// <summary>
/// Returns non-sensitive information about the current system
/// </summary>
/// <remarks>This is just for the UI and is extremly lightweight</remarks>
/// <returns></returns>
[HttpGet("server-info-slim")]
public async Task<ActionResult<ServerInfoDto>> GetSlimVersion()
{
return Ok(await _statsService.GetServerInfoSlim());
}
/// <summary>
/// Triggers the scheduling of the convert media job. This will convert all media to the target encoding (except for PNG). Only one job will run at a time.