mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-25 22:01:16 +00:00
code cleanup
This commit is contained in:
@@ -29,10 +29,10 @@ namespace MalwareMultiScan.Api
|
||||
services.AddConsul(_configuration);
|
||||
services.AddMongoDb(_configuration);
|
||||
services.AddHangfire(_configuration);
|
||||
|
||||
|
||||
services.AddSingleton<IScanResultService, ScanResultService>();
|
||||
services.AddSingleton<IScanResultJob, ScanResultJob>();
|
||||
|
||||
|
||||
services.AddControllers();
|
||||
services.AddHttpClient();
|
||||
}
|
||||
@@ -41,9 +41,9 @@ namespace MalwareMultiScan.Api
|
||||
{
|
||||
app.UseRouting();
|
||||
app.UseEndpoints(endpoints => endpoints.MapControllers());
|
||||
|
||||
|
||||
app.UseForwardedHeaders();
|
||||
|
||||
|
||||
if (hostEnvironment.IsDevelopment())
|
||||
app.UseHangfireDashboard();
|
||||
}
|
||||
|
Reference in New Issue
Block a user