mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-21 15:16:33 -04:00
Implemented the ability to delete a Library.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user