blandat.. fixar o nullcheckar. filtreringar
This commit is contained in:
@@ -21,6 +21,9 @@ namespace Bibblan.Controllers
|
||||
{
|
||||
//TODO: Bör kanske inte gå direkt mot calibres filer..
|
||||
var bytes = _calibre.Cover(path);
|
||||
if (bytes == null)
|
||||
return NotFound();
|
||||
|
||||
return File(bytes, "image/jpeg", true);
|
||||
}
|
||||
|
||||
|
@@ -31,6 +31,8 @@ namespace Bibblan.Controllers
|
||||
public IActionResult GetCover(string path)
|
||||
{
|
||||
var bytes = _service.Cover(path);
|
||||
if (bytes == null)
|
||||
return NotFound();
|
||||
return File(bytes, "image/jpeg", true);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user