mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-20 23:02:33 -04:00
The Last Polish Pass (#4353)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user