Koreader Progress Sync for all files (#4323)

Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
Joe Milazzo
2026-01-04 12:17:56 -07:00
committed by GitHub
parent f4d9f5be81
commit f5d0ad2ed2
175 changed files with 1900 additions and 1435 deletions
+4 -4
View File
@@ -84,13 +84,13 @@ public class StreamController : BaseApiController
/// <summary>
/// Validates the external source by host is unique (for this user)
/// </summary>
/// <param name="host"></param>
/// <param name="dto"></param>
/// <returns></returns>
[HttpGet("external-source-exists")]
[HttpPost("external-source-exists")]
[DisallowRole(PolicyConstants.ReadOnlyRole)]
public async Task<ActionResult<bool>> ExternalSourceExists(string host, string name, string apiKey)
public async Task<ActionResult<bool>> ExternalSourceExists(ExternalSourceDto dto)
{
return Ok(await _unitOfWork.AppUserExternalSourceRepository.ExternalSourceExists(UserId, name, host, apiKey));
return Ok(await _unitOfWork.AppUserExternalSourceRepository.ExternalSourceExists(UserId, dto.Name, dto.Host, dto.ApiKey));
}
/// <summary>