The Last Polish Pass (#4353)

This commit is contained in:
Joe Milazzo
2026-01-14 13:32:24 -07:00
committed by GitHub
parent 070f990af7
commit 969986e097
25 changed files with 169 additions and 150 deletions
+1 -4
View File
@@ -30,7 +30,6 @@ public class LicenseController(
/// </summary>
/// <returns></returns>
[HttpGet("valid-license")]
[ResponseCache(CacheProfileName = ResponseCacheProfiles.LicenseCache, VaryByQueryKeys = ["forceCheck"])]
public async Task<ActionResult<bool>> HasValidLicense(bool forceCheck = false)
{
@@ -53,7 +52,6 @@ public class LicenseController(
/// <returns></returns>
[Authorize(PolicyGroups.AdminPolicy)]
[HttpGet("has-license")]
[ResponseCache(CacheProfileName = ResponseCacheProfiles.LicenseCache)]
public async Task<ActionResult<bool>> HasLicense()
{
return Ok(!string.IsNullOrEmpty(
@@ -63,11 +61,10 @@ public class LicenseController(
/// <summary>
/// Asks Kavita+ for the latest license info
/// </summary>
/// <param name="forceCheck">Force checking the API and skip the 8 hour cache</param>
/// <param name="forceCheck">Force checking the API and skip the 8-hour cache</param>
/// <returns></returns>
[Authorize(PolicyGroups.AdminPolicy)]
[HttpGet("info")]
[ResponseCache(CacheProfileName = ResponseCacheProfiles.LicenseCache, VaryByQueryKeys = ["forceCheck"])]
public async Task<ActionResult<LicenseInfoDto?>> GetLicenseInfo(bool forceCheck = false)
{
try