Implemented the ability to delete a Library.
This commit is contained in:
parent
7b1714349d
commit
5e18c1bf3a
3 changed files with 16 additions and 0 deletions
|
@ -146,5 +146,12 @@ namespace API.Controllers
|
|||
{
|
||||
return Ok(await _seriesRepository.GetSeriesDtoForLibraryIdAsync(libraryId));
|
||||
}
|
||||
|
||||
[Authorize(Policy = "RequireAdminRole")]
|
||||
[HttpDelete("delete")]
|
||||
public async Task<ActionResult<bool>> DeleteLibrary(int libraryId)
|
||||
{
|
||||
return Ok(await _libraryRepository.DeleteLibrary(libraryId));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue