diff --git a/RMuseum/Controllers/PDFLibraryController.cs b/RMuseum/Controllers/PDFLibraryController.cs index f535892c..d30f7b1b 100644 --- a/RMuseum/Controllers/PDFLibraryController.cs +++ b/RMuseum/Controllers/PDFLibraryController.cs @@ -1538,6 +1538,28 @@ namespace RMuseum.Controllers return Ok(res.Result); } + /// + /// mix queued pdf books + /// + /// + /// + [HttpPut] + [Route("q/mix/{step}")] + [Authorize(Policy = RMuseumSecurableItem.PDFLibraryEntityShortName + ":" + SecurableItem.ModifyOperationShortName)] + [ProducesResponseType((int)HttpStatusCode.OK)] + [ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(string))] + [ProducesResponseType((int)HttpStatusCode.NotFound)] + public async Task MixuQueuedPDFBooksAsync(int step = 10) + { + + var res = await _pdfService.MixuQueuedPDFBooksAsync(step); + if (!string.IsNullOrEmpty(res.ExceptionString)) + { + return BadRequest(res.ExceptionString); + } + return Ok(); + } + /// /// start processing queue pdf books ///