2025-01-14 14:01:01 +00:00
|
|
|
using RhSolutions.SkuParser.Abstractions;
|
2025-01-14 05:59:55 +00:00
|
|
|
using RhSolutions.SkuParser.Services;
|
|
|
|
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
builder.Services
|
2025-01-14 14:01:01 +00:00
|
|
|
.AddKeyedScoped<ISkuParser, CommonCsvParser>("text/csv")
|
|
|
|
.AddKeyedScoped<ISkuParser, CommonExcelParser>("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
|
|
|
|
.AddKeyedScoped<ISkuParser, CommonExcelParser>("application/vnd.ms-excel.sheet.macroenabled.12");
|
2025-01-14 05:59:55 +00:00
|
|
|
builder.Services.AddControllers();
|
|
|
|
|
|
|
|
var app = builder.Build();
|
|
|
|
app.MapControllers();
|
2024-07-21 16:25:59 +03:00
|
|
|
app.Run();
|