mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-25 14:01:13 +00:00
change the communication protocol to RMQ
This commit is contained in:
@@ -8,11 +8,11 @@ namespace MalwareMultiScan.Api.Controllers
|
||||
[Route("download")]
|
||||
public class DownloadController : Controller
|
||||
{
|
||||
private readonly ScanResultsService _scanResultsService;
|
||||
private readonly ScanResultService _scanResultService;
|
||||
|
||||
public DownloadController(ScanResultsService scanResultsService)
|
||||
public DownloadController(ScanResultService scanResultService)
|
||||
{
|
||||
_scanResultsService = scanResultsService;
|
||||
_scanResultService = scanResultService;
|
||||
}
|
||||
|
||||
[HttpGet("{id}")]
|
||||
@@ -20,7 +20,7 @@ namespace MalwareMultiScan.Api.Controllers
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
public async Task<IActionResult> Index(string id)
|
||||
{
|
||||
var fileStream = await _scanResultsService.ObtainFile(id);
|
||||
var fileStream = await _scanResultService.ObtainFile(id);
|
||||
|
||||
if (fileStream == null)
|
||||
return NotFound();
|
||||
|
Reference in New Issue
Block a user