diff options
author | Serghei Cebotari <serghei@cebotari.ru> | 2025-01-15 15:06:04 +0300 |
---|---|---|
committer | Serghei Cebotari <serghei@cebotari.ru> | 2025-01-15 15:06:04 +0300 |
commit | be127319e27d630ce14c793fc50bccd576e5fb7b (patch) | |
tree | 14b9ceb08596a8a68c272620f904e0ad971ab89e /RhSolutions.SkuParser.Api/Program.cs | |
parent | a542bfb7f4ceee8b49cf8fcadf64ffb72cc97da5 (diff) |
Implement BS parser
Diffstat (limited to 'RhSolutions.SkuParser.Api/Program.cs')
-rw-r--r-- | RhSolutions.SkuParser.Api/Program.cs | 6 |
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();
|