aboutsummaryrefslogtreecommitdiff
path: root/RhSolutions.SkuParser.Api/Program.cs
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2025-01-15 15:06:04 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2025-01-15 15:06:04 +0300
commitbe127319e27d630ce14c793fc50bccd576e5fb7b (patch)
tree14b9ceb08596a8a68c272620f904e0ad971ab89e /RhSolutions.SkuParser.Api/Program.cs
parenta542bfb7f4ceee8b49cf8fcadf64ffb72cc97da5 (diff)
Implement BS parser
Diffstat (limited to 'RhSolutions.SkuParser.Api/Program.cs')
-rw-r--r--RhSolutions.SkuParser.Api/Program.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/RhSolutions.SkuParser.Api/Program.cs b/RhSolutions.SkuParser.Api/Program.cs
index 13e0b90..731344a 100644
--- a/RhSolutions.SkuParser.Api/Program.cs
+++ b/RhSolutions.SkuParser.Api/Program.cs
@@ -1,11 +1,15 @@
using RhSolutions.SkuParser.Abstractions;
+using RhSolutions.SkuParser.Api.Services;
using RhSolutions.SkuParser.Services;
var builder = WebApplication.CreateBuilder(args);
+builder.Configuration
+ .AddJsonFile("appsettings.json");
builder.Services
.AddKeyedScoped<ISkuParser, CommonCsvParser>("text/csv")
.AddKeyedScoped<ISkuParser, CommonExcelParser>("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
- .AddKeyedScoped<ISkuParser, CommonExcelParser>("application/vnd.ms-excel.sheet.macroenabled.12");
+ .AddKeyedScoped<ISkuParser, CommonExcelParser>("application/vnd.ms-excel.sheet.macroenabled.12")
+ .AddKeyedScoped<ISkuParser, BsExcelParser>("BS");
builder.Services.AddControllers();
var app = builder.Build();