No more JWTs for Scripts + Polish (#4274)

Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
Joe Milazzo
2025-12-13 06:55:02 -07:00
committed by GitHub
parent b67680c639
commit 8043650aa5
131 changed files with 7804 additions and 1849 deletions
+37
View File
@@ -1023,4 +1023,41 @@ public class ReaderController : BaseApiController
}
/// <summary>
/// Check if we should prompt the user for rereads for the given series
/// </summary>
/// <param name="seriesId"></param>
/// <returns></returns>
[HttpGet("prompt-reread/series")]
public async Task<ActionResult<RereadDto>> ShouldPromptForSeriesReRead(int seriesId)
{
return Ok(await _readerService.CheckSeriesForReRead(UserId, seriesId));
}
/// <summary>
/// Check if we should prompt the user for rereads for the given volume
/// </summary>
/// <param name="libraryId"></param>
/// <param name="seriesId"></param>
/// <param name="volumeId"></param>
/// <returns></returns>
[HttpGet("prompt-reread/volume")]
public async Task<ActionResult<RereadDto>> ShouldPromptForVolumeReRead(int libraryId, int seriesId, int volumeId)
{
return Ok(await _readerService.CheckVolumeForReRead(UserId, volumeId, seriesId, libraryId));
}
/// <summary>
/// Check if we should prompt the user for rereads for the given chapter
/// </summary>
/// <param name="libraryId"></param>
/// <param name="seriesId"></param>
/// <param name="chapterId"></param>
/// <returns></returns>
[HttpGet("prompt-reread/chapter")]
public async Task<ActionResult<RereadDto>> ShouldPromptForChapterReRead(int libraryId, int seriesId, int chapterId)
{
return Ok(await _readerService.CheckChapterForReRead(UserId, chapterId, seriesId, libraryId));
}
}