#444 api/ganjoor/wordcounts/rebuild
This commit is contained in:
parent
efee24a75f
commit
6a97ddf3d9
@ -4184,6 +4184,22 @@ namespace RMuseum.Controllers
|
||||
return Ok(res.Result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// build word counts
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost("wordcounts/rebuild")]
|
||||
[Authorize(Policy = RMuseumSecurableItem.GanjoorEntityShortName + ":" + SecurableItem.ModifyOperationShortName)]
|
||||
[ProducesResponseType((int)HttpStatusCode.OK)]
|
||||
[ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(string))]
|
||||
public IActionResult BuildCategoryWordCounts()
|
||||
{
|
||||
_ganjoorService.BuildCategoryWordCounts();
|
||||
return Ok();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// readonly mode
|
||||
|
||||
@ -1431,5 +1431,10 @@ namespace RMuseum.Services
|
||||
/// <param name="page"></param>
|
||||
/// <returns></returns>
|
||||
Task<RServiceResult<GanjoorPage>> AddPageAsync(GanjoorPage page);
|
||||
|
||||
/// <summary>
|
||||
/// build word counts
|
||||
/// </summary>
|
||||
void BuildCategoryWordCounts();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user