Changed scan to POST and added new API for route gurads on UI.
This commit is contained in:
parent
521eac266a
commit
55a44000fc
2 changed files with 13 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue