Added Hangfire and Hangfire SQLite extension for future task framework. Added a basic directory scanning implementation.
This commit is contained in:
parent
b899157015
commit
b3f210a8ab
6 changed files with 169 additions and 2 deletions
|
@ -99,5 +99,16 @@ namespace API.Controllers
|
|||
|
||||
return BadRequest("Not Implemented");
|
||||
}
|
||||
|
||||
[Authorize(Policy = "RequireAdminRole")]
|
||||
[HttpGet("scan")]
|
||||
public async Task<ActionResult> ScanLibrary(int libraryId)
|
||||
{
|
||||
var library = await _libraryRepository.GetLibraryForIdAsync(libraryId);
|
||||
|
||||
_directoryService.ScanLibrary(library);
|
||||
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue