mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-21 15:16:33 -04:00
Changed scan to POST and added new API for route gurads on UI.
This commit is contained in:
@@ -85,7 +85,7 @@ namespace API.Controllers
|
||||
}
|
||||
|
||||
[Authorize(Policy = "RequireAdminRole")]
|
||||
[HttpGet("scan")]
|
||||
[HttpPost("scan")]
|
||||
public async Task<ActionResult> ScanLibrary(int libraryId)
|
||||
{
|
||||
var library = await _libraryRepository.GetLibraryDtoForIdAsync(libraryId);
|
||||
|
||||
Reference in New Issue
Block a user